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

Problems with raising errors on a mocked object

by Eivind Uggedal :: Rate this Message:

Reply to Author | View in Thread

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.

Cheers,
Eivind Uggedal
_______________________________________________
rspec-users mailing list
rspec-users@...
http://rubyforge.org/mailman/listinfo/rspec-users

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