search for: should_have_emailed

Displaying 1 result from an estimated 1 matches for "should_have_emailed".

2007 Nov 07
1
Helper methods starting with should_ get picked up as examples?
...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 some debug output that I generated for a method called should_have_emailed: #<Spec::DSL::ExampleDefinition:0x3383bfc @example_block=#<Proc: 0x003f0250@/Users/peter/src/gear/specialist/vendor/plugins/rspec/lib/ spec/dsl/example.rb:27>, @from="/Users/peter/src/gear/specialist/ vendor/plugins/rspec/lib/spec/dsl/example.rb:22:in `each''", @des...