Hello.
Perhaps rspec-mocks could warn if it stubs a not yet existing method?
class A
end
describe RSpec do
it 'should' do
a = A.new
a.stub!(:nonexistent_method) {}
end
end
This might help the development process by pointing out possible
discrepancies between rspec tests and the code (for when refactoring
wasn't performed fully et al).
Cheers!
-roger-
on 2011-08-26 19:02
on 2011-08-26 20:37
On Aug 26, 2011, at 12:02 PM, Roger Pack wrote: > Hello. > Perhaps rspec-mocks could warn if it stubs a not yet existing method? See https://github.com/rspec/rspec-mocks/issues/15 Cheers, David
on 2011-08-26 22:18
Roger, Check the list archives - this topic is brought up every other 3 months :)
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.