« Return to Thread: Problems with raising errors on a mocked object

Re: Problems with raising errors on a mocked object

by Eivind Uggedal :: Rate this Message:

Reply to Author | View in Thread

Here you go: http://pastie.caboo.se/85876

Eivind

On 8/8/07, David Chelimsky <dchelimsky@...> wrote:

> On 8/7/07, Eivind Uggedal <eivindu@...> wrote:
> > I'm trying to mock a object to raise a certain error. By doing so I
> > get a ArgumentError on ActiveRecord's save! method:
> >
> > http://pastie.caboo.se/85628
> >
> > I've tried to debug it but just can't seem to find what I'm doing
> > wrong. Any help is greatly appreciated.
>
> Please run this:
>
> ruby script/spec ./spec/controllers/users_controller_spec.rb -b
>
> That will give the complete backtrace for the failure, which I'd ask
> you to pastie as well.
>
> >
> > Cheers,
> > Eivind Uggedal
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users@...
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users@...
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@...
http://rubyforge.org/mailman/listinfo/rspec-users

 « Return to Thread: Problems with raising errors on a mocked object