Re: [rspec-users] MockExpectationError

2008-12-05 Thread Song Lee
yes indeed, thanks -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] MockExpectationError

2008-12-05 Thread Song Lee
no matter how I try to stub! it still showing this error I have the following in my spec Profile.stub!(:new).and_return(@profile = mock_model(Profile)) Then (rdb:1) @profile.stub!(:user) #, @name="Pr ofile_1300">>, @args_expectation=#], @match_any_args=true>, @args_to_yield=[], @method_block