summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-30 15:25:15 +0900
committerGitHub <noreply@github.com>2023-10-30 06:25:15 +0000
commit992f3956d304b608912ed112889ec2ef8224e2be (patch)
tree6f33cb672f6b46d705bad30b022e2a744311e0b0 /spec
parent8563a144fda2fd130b672541a84d8bad0b6c4cd2 (diff)
Relax matching pattern for rake version for Ruby 3.1 (#8798)
[rubygems/rubygems] Relax matching pattern for rake version https://github.com/rubygems/rubygems/commit/a89f74c27e
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/add_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/commands/add_spec.rb b/spec/bundler/commands/add_spec.rb
index 36d7616949..d9fa771502 100644
--- a/spec/bundler/commands/add_spec.rb
+++ b/spec/bundler/commands/add_spec.rb
@@ -147,7 +147,7 @@ RSpec.describe "bundle add" do
it "adds dependency with specified github source" do
bundle "add rake --github=ruby/rake"
- expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.0", :github => "ruby\/rake"})
+ expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.\d+", :github => "ruby\/rake"})
end
end
@@ -155,7 +155,7 @@ RSpec.describe "bundle add" do
it "adds dependency with specified github source and branch" do
bundle "add rake --github=ruby/rake --branch=master"
- expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.0", :github => "ruby\/rake", :branch => "master"})
+ expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.\d+", :github => "ruby\/rake", :branch => "master"})
end
end
@@ -163,7 +163,7 @@ RSpec.describe "bundle add" do
it "adds dependency with specified github source and ref" do
bundle "add rake --github=ruby/rake --ref=5c60da8"
- expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.0", :github => "ruby\/rake", :ref => "5c60da8"})
+ expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.\d+", :github => "ruby\/rake", :ref => "5c60da8"})
end
end