summaryrefslogtreecommitdiff
path: root/spec/bundler/fetcher_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/fetcher_spec.rb')
-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