[rspec-users] Fwd: Issue with AR::Base descendants with certain argument

Bira u.alberton at gmail.com
Mon Nov 1 09:25:07 EDT 2010


On Mon, Nov 1, 2010 at 10:32 AM, David Chelimsky <dchelimsky at gmail.com> wrote:
>
> Can you post a real example of this complete with spec,
> implementation, and failure message?
>
> Thx

I'm trying :)! So far it's been hard to isolate.

Looks like many of the failures I get in my application actually
happen "far away" from the original stub statement. So we stub the
class method on one point of the spec file, and then on a subsequent
unrelated context it gets called by some observer code. Due to the
changes from 2753b492e, the message gets dispatched to
ActiveRecord::Base instead of Settings. I'll try to reproduce this
within rspec-rails' own specs.

-- 
Bira
http://compexplicita.wordpress.com
http://compexplicita.tumblr.com


More information about the rspec-users mailing list