On 27/01/2009, at 4:06 AM, [email protected] wrote:

Pat:

Put the describe in the module, and take advantage of Ruby's lookup semantics:

module Foo
 module Baz
   describe Class1 do

...

Thanks for that beautifully simple suggestion! Thanks also to Nick Hoffman for the reminder about mocks and stubs. The overly concise variable names I used in my example are for example purposes only, the real ones are more
   readable and subject-specific.

Thanks,

Stu

--
Stuart Hungerford
ANU Supercomputer Facility



_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to