summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfotanus@gmail.com <Felipe Tanus>2015-05-14 10:58:28 -0300
committerfotanus@gmail.com <Felipe Tanus>2015-05-14 10:58:28 -0300
commit2a81add2e61da212fd229e37461be21c02fe1a96 (patch)
tree7ab43a4a8563564f215a0e0ba490abe5099d5477
parent54e416fd45fc47c10c46a20092af51b65e8eda3d (diff)
downloadbundler-2a81add2e61da212fd229e37461be21c02fe1a96.tar.gz
Clean ENV variable after tests
-rw-r--r--spec/bundler/fetcher_spec.rb3
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