how to run rspec with no observers in rails 3?

Viewed 3146

I have a rails3 app that has some observers. I can't for the life of me figure out how to turn these off for my rspec tests!

2 Answers

Two options might be:

  1. No peeping toms
  2. Add the following to your test.rb environment: config.active_record.observers = []
Related