diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-10 23:28:42 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-10 23:28:42 +0300 |
commit | 001f3bc59ef34752b98ab405fde2520b15eff51c (patch) | |
tree | 80a74c103fe12efdd374219c01fb113f4e1baede /spec/spec_helper.rb | |
parent | 0ae892007dac045e58cab793806f778b90ce6c2e (diff) | |
download | gitlab-ce-001f3bc59ef34752b98ab405fde2520b15eff51c.tar.gz |
Specs refactoring to reduce test time. Disabled observers by default for specs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8a01c930685..3c318a4be82 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -41,13 +41,15 @@ Spork.prefork do config.include FactoryGirl::Syntax::Methods config.include Devise::TestHelpers, type: :controller + config.include TestEnv + # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false # instead of true. config.use_transactional_fixtures = false config.before do - TestEnv.init + TestEnv.init(observers: false) end end end |