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:
authorBrett Walker <brett@digitalmoksha.com>2018-01-23 13:23:23 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-01-23 13:23:23 +0300
commitb8b9e9eb8e3f285bc3040f3dc425deeada585aae (patch)
tree87934fbe6b2b2b66be25888152bcbcd4af82e970 /qa/spec/runtime/env_spec.rb
parentfcfda3ef82992e5f56573dffb56b2a5896c24aff (diff)
Add ability to drive the API in QA specs
Diffstat (limited to 'qa/spec/runtime/env_spec.rb')
-rw-r--r--qa/spec/runtime/env_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/qa/spec/runtime/env_spec.rb b/qa/spec/runtime/env_spec.rb
index 57a72a04507..103573db6be 100644
--- a/qa/spec/runtime/env_spec.rb
+++ b/qa/spec/runtime/env_spec.rb
@@ -1,7 +1,5 @@
describe QA::Runtime::Env do
- before do
- allow(ENV).to receive(:[]).and_call_original
- end
+ include Support::StubENV
describe '.chrome_headless?' do
context 'when there is an env variable set' do
@@ -57,8 +55,4 @@ describe QA::Runtime::Env do
end
end
end
-
- def stub_env(name, value)
- allow(ENV).to receive(:[]).with(name).and_return(value)
- end
end