Skip to content

Instantly share code, notes, and snippets.

@bernardeli
Created July 3, 2012 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernardeli/3043350 to your computer and use it in GitHub Desktop.
Save bernardeli/3043350 to your computer and use it in GitHub Desktop.
rspec config
RSpec.configure do |config|
config.before(:suite) do
ActiveRecord::Base.observers.disable :all
end
end
ActiveRecord::Observer.with_observers(:your_observe) do
# your assertion here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment