diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-22 19:02:01 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-22 19:02:01 +0100 |
commit | a5a6577daa58379a579fbb78f37cc45a6211146e (patch) | |
tree | c79325f7659baa3f0d75ad8701092bf8f75b8258 /spec | |
parent | a11c104c5b6222c018248b585cca2a4f340a9a71 (diff) | |
download | bundler-a5a6577daa58379a579fbb78f37cc45a6211146e.tar.gz |
Bump rubocop and rubocop-performance
To the latest 0.76.0, and 1.5.1, respectively.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/fetcher_spec.rb | 4 | ||||
-rw-r--r-- | spec/support/rubygems_ext.rb | 4 |
2 files changed, 4 insertions, 4 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 diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb index 1d41807cc8..e8625ef7cb 100644 --- a/spec/support/rubygems_ext.rb +++ b/spec/support/rubygems_ext.rb @@ -10,8 +10,8 @@ module Spec "rake" => "~> 12.0", "ronn" => "~> 0.7.3", "rspec" => "~> 3.8", - "rubocop" => "= 0.74.0", - "rubocop-performance" => "= 1.4.0", + "rubocop" => "= 0.76.0", + "rubocop-performance" => "= 1.5.1", }.freeze DEPS = { |