diff options
author | fotanus@gmail.com <Felipe Tanus> | 2015-05-14 10:58:28 -0300 |
---|---|---|
committer | fotanus@gmail.com <Felipe Tanus> | 2015-05-14 10:58:28 -0300 |
commit | 2a81add2e61da212fd229e37461be21c02fe1a96 (patch) | |
tree | 7ab43a4a8563564f215a0e0ba490abe5099d5477 | |
parent | 54e416fd45fc47c10c46a20092af51b65e8eda3d (diff) | |
download | bundler-2a81add2e61da212fd229e37461be21c02fe1a96.tar.gz |
Clean ENV variable after tests
-rw-r--r-- | spec/bundler/fetcher_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb index 543707c6c0..d5fb97b32f 100644 --- a/spec/bundler/fetcher_spec.rb +++ b/spec/bundler/fetcher_spec.rb @@ -22,6 +22,7 @@ describe Bundler::Fetcher do ENV["JENKINS_URL"] = "foo" ci_part = fetcher.user_agent.split(' ').find{|x| x.match(/\Aci\//)} expect(ci_part).to match("jenkins") + ENV["JENKINS_URL"] = nil end it "from many CI" do @@ -30,6 +31,8 @@ describe Bundler::Fetcher do ci_part = fetcher.user_agent.split(' ').find{|x| x.match(/\Aci\//)} expect(ci_part).to match("travis") expect(ci_part).to match("my_ci") + ENV["TRAVIS"] = nil + ENV["CI_NAME"] = nil end end end |