summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-11-23 10:52:14 +0000
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-13 20:07:18 +0100
commit098d6d961f9828c099b40a7e31d8de653a16c44b (patch)
treed3a7bef430ac5b92c56e6f952af2d62686918a19 /spec/bundler
parentd2a122de2fbde44cc3e7774535c3bc641aaffdf7 (diff)
downloadbundler-098d6d961f9828c099b40a7e31d8de653a16c44b.tar.gz
Merge #7452
7452: Bump rubocop and rubocop-performance r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was not really a problem, but it's good to keep our dependencies up to date. ### What is your fix for the problem, implemented in this PR? My fix is to bump rubocop and rubocop-performance. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> (cherry picked from commit 3e54fbc7b1e28e25eaac465a825cdd16facfe999)
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/fetcher_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb
index 184b9efa64..9176eb32f0 100644
--- a/spec/bundler/fetcher_spec.rb
+++ b/spec/bundler/fetcher_spec.rb
@@ -144,14 +144,14 @@ RSpec.describe Bundler::Fetcher do
describe "include CI information" do
it "from one CI" do
with_env_vars("JENKINS_URL" => "foo") do
- ci_part = fetcher.user_agent.split(" ").find {|x| x.match(%r{\Aci/}) }
+ ci_part = fetcher.user_agent.split(" ").find {|x| x.start_with?("ci/") }
expect(ci_part).to match("jenkins")
end
end
it "from many CI" do
with_env_vars("TRAVIS" => "foo", "CI_NAME" => "my_ci") do
- ci_part = fetcher.user_agent.split(" ").find {|x| x.match(%r{\Aci/}) }
+ ci_part = fetcher.user_agent.split(" ").find {|x| x.start_with?("ci/") }
expect(ci_part).to match("travis")
expect(ci_part).to match("my_ci")
end