On Fri, Dec 5, 2008 at 9:18 PM, Song Lee <[EMAIL PROTECTED]> wrote:

>    Profile.stub!(:new).and_return(@profile = mock_model(Profile))
>
> (rdb:1) @profile.user = 3
> Spec::Mocks::MockExpectationError Exception: Mock 'Profile_1300'
> received unexpected message :user= with (3)
>

You're stubbing :user when you need to stub :user=

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

Reply via email to