Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-11 00:28:42 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-11 00:28:42 +0400
commit001f3bc59ef34752b98ab405fde2520b15eff51c (patch)
tree80a74c103fe12efdd374219c01fb113f4e1baede /spec/spec_helper.rb
parent0ae892007dac045e58cab793806f778b90ce6c2e (diff)
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.rb4
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