Re: [rspec-users] Model Specs: Fixtures vs Mocks + Stubs?

2007-09-04 Thread David Chelimsky
On 9/4/07, Lance Carlson [EMAIL PROTECTED] wrote: What is the general opinion about fixtures versus mocking and stubbing in model specs? I heard from agile on IRC that they save the database testing for integration testing, but I also see that the caboose sample applicaiton uses fixtures. I

Re: [rspec-users] Model Specs: Fixtures vs Mocks + Stubs?

2007-09-04 Thread Lance Carlson
Ok, so to extend this issue, I'm attempting to use mocks and stubs on my model specs. I've got some questions though.. here is my code: module UserSpecHelper def mock_user(user) @user = mock_model(User) if user == :lance || user == :account_owner

Re: [rspec-users] Model Specs: Fixtures vs Mocks + Stubs?

2007-09-04 Thread Lance Carlson
Or am I to assume that rails is doing it's job and that the associations I created in my models are working as they should? On 9/4/07, Lance Carlson [EMAIL PROTECTED] wrote: Ok, so to extend this issue, I'm attempting to use mocks and stubs on my model specs. I've got some questions though..