[rspec-users] Observer not calling inside a spec

David Chelimsky dchelimsky at gmail.com
Wed Nov 26 05:41:03 EST 2008

On Wed, Nov 26, 2008 at 4:32 AM, Mikel Lindsaar <raasdnil at gmail.com> wrote:
>> I see two examples with identical code. Do they both fail, or just the
>> 2nd one? If so, there was a bug in which mocked inherited class
>> methods were not properly restored after the example. This is fixed in
>> git, but not released.
>> Would you mind building the gem from the latest and see if it resolves
> Sorry David, stupid typo.  I am duplicating the text from another screen
> that is not on the 'net directly.  The second spec does not exist.
>  #spec/observers/person_observer_spec.rb
>  describe PersonObserver do
>    it "should call the observer"
>      person = Person.generate
>      Note.should_receive(:update_associated)
>      person.save
>    end
>  end
> I'll get the git version anyway and try it out.

Feel free, but now that I know there is only one example, I doubt that
it will solve your problem. But who knows? Couldn't hurt to try :)

More information about the rspec-users mailing list