Skip to content

Can't disable observers #73

@JohnSmall

Description

@JohnSmall

I'm going mad.

In most of my Rspec specs I want observers to be disabled, except for some. But

 ActiveRecord::Base.observers.disable :all

is not working.

It goes through the motions, something happens, I can see all the observers in the disabled_observers array but the observers still trigger.

It's driving me nuts. However I can see that the gem tests for disable are passing. It must be that the tests are not testing real things

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions