From b8b9e9eb8e3f285bc3040f3dc425deeada585aae Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Tue, 23 Jan 2018 10:23:23 +0000 Subject: Add ability to drive the API in QA specs --- qa/spec/runtime/env_spec.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'qa/spec/runtime/env_spec.rb') 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 -- cgit v1.2.3