Displaying 1 result from an estimated 1 matches for "should_have_paid".
2007 Nov 07
1
Helper methods starting with should_ get picked up as examples?
...updated my rspec and rspec_on_rails plugins to the tip of
the trunk and ran into an issue with helper methods with names
starting with should_ in my describe blocks. Fictive example to show
what I''m talking about:
describe Order do
it "Can be paid for" do
...
should_have_paid(user)
end
def should_have_paid(user)
end
end
I know in some places I should (ah, there is that word again...) be
using custom matchers when I''m being lazy and instead just defining
methods. Anyway, it seems RSpec picks up methods starting with
should_ as examples. Here is...