Re: [rspec-users] [rspec-devel] rspec_on_rails (trunk - r3070) works with Rails 2.0.1

2007-12-08 Thread James Deville
I figured most of it out. The Spec::Rails stuff was something in the code which has been fixed by revision 3099. The test methods partially make sense. Since the test/unit code has been integrated, methods with test in them are automatically turned into specs. However, the test? method is i

Re: [rspec-users] Mocks? Really?

2007-12-08 Thread Dan North
I prefer the mantra "mock roles, not objects", in other words, mock things that have behaviour (services, components, resources, whatever your preferred term is) rather than stubbing out domain objects themselves. If you have to mock domain objects it's usually a smell that your domain implementati

Re: [rspec-users] Mocks? Really?

2007-12-08 Thread Andy Goundry
Thanks for all the feedback. Personally, i am working outside in, from views to models, so mocking does have its place. After lots of trialing, I am confident now that a Factory class can satisfy my need for using mocks and real models in different places. I define the characteristics of an