diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-01-22 03:11:19 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-23 18:35:24 +0300 |
commit | 632c2939bb1e9d10b5e9be05bc4692d92f9f5f32 (patch) | |
tree | b56bf9a5fb3665fc38cdf5fa0b1e5739983a3bdb /spec/features/admin/admin_uses_repository_checks_spec.rb | |
parent | 6c65f7a7ce52fadcf53ea2395103de32b0107874 (diff) |
Revert "Merge branch 'revert-9cac0317' into 'master'
"
This reverts commit c20934869f7dc8cfbdbafb6ecb7b1305452c9e8a, reversing
changes made to 4b7ec44b91e0571d209c790d54947ba1756dac0e.
Diffstat (limited to 'spec/features/admin/admin_uses_repository_checks_spec.rb')
-rw-r--r-- | spec/features/admin/admin_uses_repository_checks_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/features/admin/admin_uses_repository_checks_spec.rb b/spec/features/admin/admin_uses_repository_checks_spec.rb index 661fb761809..855247de2ea 100644 --- a/spec/features/admin/admin_uses_repository_checks_spec.rb +++ b/spec/features/admin/admin_uses_repository_checks_spec.rb @@ -1,7 +1,12 @@ require 'rails_helper' feature 'Admin uses repository checks', feature: true do - before { login_as :admin } + include StubENV + + before do + stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false') + login_as :admin + end scenario 'to trigger a single check' do project = create(:empty_project) @@ -29,7 +34,7 @@ feature 'Admin uses repository checks', feature: true do scenario 'to clear all repository checks', js: true do visit admin_application_settings_path - + expect(RepositoryCheck::ClearWorker).to receive(:perform_async) click_link 'Clear all repository checks' |