summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2014-06-06 19:55:49 +0200
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2014-06-06 19:55:49 +0200
commit7cf1a4259ac123725f2eb0ab6fc682e739d45734 (patch)
tree7fd8e4eeb897d5e79ff7da1d49ef8c818afa64fa /spec/spec_helper.rb
parentbd65f486d907b00f588bdfe7c7c241782fb491fd (diff)
downloadgitlab-ce-7cf1a4259ac123725f2eb0ab6fc682e739d45734.tar.gz
Disable fixtures
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e6b1f816df0..65a641bcf12 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -27,6 +27,8 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|
+ config.use_transactional_fixtures = false
+ config.use_instantiated_fixtures = false
config.mock_with :rspec
config.include LoginHelpers, type: :feature
@@ -39,7 +41,6 @@ RSpec.configure do |config|
# 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(:suite) do
TestEnv.init(observers: false, init_repos: true, repos: false)