Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 65a5271

Browse files
committed
Add limit :rubygems => ">= 2"
Because those specs are failed with old RubyGems.
1 parent ec4878e commit 65a5271

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/bundler/installer/gem_installer_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
subject { described_class.new(spec, installer) }
1111

1212
context "spec_settings is nil" do
13-
it "invokes install method with empty build_args" do
13+
it "invokes install method with empty build_args", :rubygems => ">= 2" do
1414
allow(spec_source).to receive(:install).with(spec, :force => false, :ensure_builtin_gems_cached => false, :build_args => [])
1515
subject.install_from_spec
1616
end
1717
end
1818

1919
context "spec_settings is build option" do
20-
it "invokes install method with build_args" do
20+
it "invokes install method with build_args", :rubygems => ">= 2" do
2121
allow(Bundler.settings).to receive(:[]).with(:bin)
2222
allow(Bundler.settings).to receive(:[]).with("build.dummy").and_return("--with-dummy-config=dummy")
2323
allow(spec_source).to receive(:install).with(spec, :force => false, :ensure_builtin_gems_cached => false, :build_args => ["--with-dummy-config=dummy"])

0 commit comments

Comments
 (0)