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:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-07-12 15:45:42 +0300
committerblackst0ne <blackst0ne.ru@gmail.com>2017-07-12 15:45:42 +0300
commit2c8700c01ee31efd49d8bd54e97e4649e84be7f8 (patch)
tree72cc2219bdb4aea5d1c6ba88862373458a9f5ee2 /spec/spec_helper.rb
parent2b827d05786a2175281b8f3319570a839b66a627 (diff)
Replace 'browse_files.feature' spinach test with an rspec analog
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb5
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