diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-07-12 23:45:42 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-07-12 23:45:42 +1100 |
commit | 2c8700c01ee31efd49d8bd54e97e4649e84be7f8 (patch) | |
tree | 72cc2219bdb4aea5d1c6ba88862373458a9f5ee2 /spec/spec_helper.rb | |
parent | 2b827d05786a2175281b8f3319570a839b66a627 (diff) | |
download | gitlab-ce-2c8700c01ee31efd49d8bd54e97e4649e84be7f8.tar.gz |
Replace 'browse_files.feature' spinach test with an rspec analog
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dc0bdd9f4c7..3c142764e28 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -76,6 +76,11 @@ RSpec.configure do |config| TestEnv.cleanup end + config.before(:example) do + # Skip pre-receive hook check so we can use the web editor and merge. + allow_any_instance_of(Gitlab::Git::Hook).to receive(:trigger).and_return([true, nil]) + end + config.before(:example, :request_store) do RequestStore.begin! end |