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
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
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..