Re: [rspec-users] MockExpectationError actual args format for stubbed messages

2009-11-18 Thread David Chelimsky
On Wed, Nov 18, 2009 at 2:53 AM, Tom Stuart wrote: > Hi, > > Is it realistic and desirable to tweak RSpec so that the > MockExpectationError for a stubbed message works as specified in the > attached spec patch? > > In short, we wasted some time today on a wild goose chase because a failing > exp

[rspec-users] MockExpectationError actual args format for stubbed messages

2009-11-18 Thread Tom Stuart
Hi, Is it realistic and desirable to tweak RSpec so that the MockExpectationError for a stubbed message works as specified in the attached spec patch? In short, we wasted some time today on a wild goose chase because a failing expectation error was saying "unexpected arguments, expected: (#, #

Re: [rspec-users] MockExpectationError with restful-authentication

2009-01-02 Thread Mark A. Richman
Thanks! That seems to have knocked out all but 4 errors. I'll keep banging away...this is fun! :) Best, Mark On Fri, Jan 2, 2009 at 5:00 AM, David Chelimsky wrote: > On Thu, Jan 1, 2009 at 1:40 PM, Mark A. Richman > wrote: > > Thanks that helped! Now I'm getting these errors...any ideas? Looks

Re: [rspec-users] MockExpectationError with restful-authentication

2009-01-02 Thread David Chelimsky
On Thu, Jan 1, 2009 at 1:40 PM, Mark A. Richman wrote: > Thanks that helped! Now I'm getting these errors...any ideas? Looks like > something cookie related? > > http://pastie.org/350148 Only the first 2 look cookie related to me. The rest seem like typos - either things that you changed after ge

Re: [rspec-users] MockExpectationError with restful-authentication

2009-01-01 Thread Mark A. Richman
Thanks that helped! Now I'm getting these errors...any ideas? Looks like something cookie related? http://pastie.org/350148 On Wed, Dec 31, 2008 at 2:43 PM, Pat Maddox wrote: > You didn't tell your mock object about the enabled? method. You need > to stub it out (prob set it to true) > > Pat >

Re: [rspec-users] MockExpectationError with restful-authentication

2008-12-31 Thread Pat Maddox
You didn't tell your mock object about the enabled? method. You need to stub it out (prob set it to true) Pat On 12/31/08, Mark A. Richman wrote: > Hi there...this is my first time using rspec and rspec-rails. When I run > `rake spec`, I get this type of error over and over...what does it mean,

[rspec-users] MockExpectationError with restful-authentication

2008-12-31 Thread Mark A. Richman
Hi there...this is my first time using rspec and rspec-rails. When I run `rake spec`, I get this type of error over and over...what does it mean, and how can I correct it? Thanks, Mark 9) Spec::Mocks::MockExpectationError in 'SessionController on successful login, my request cookie token is valid

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

Re: [rspec-users] MockExpectationError

2008-12-05 Thread Mark Wilden
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

[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