summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-22 19:02:01 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-22 19:02:01 +0100
commita5a6577daa58379a579fbb78f37cc45a6211146e (patch)
treec79325f7659baa3f0d75ad8701092bf8f75b8258 /spec/bundler
parenta11c104c5b6222c018248b585cca2a4f340a9a71 (diff)
downloadbundler-a5a6577daa58379a579fbb78f37cc45a6211146e.tar.gz
Bump rubocop and rubocop-performance
To the latest 0.76.0, and 1.5.1, respectively.
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