diff options
author | Andre Arko <andre@arko.net> | 2016-01-11 00:43:37 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2016-01-21 18:48:20 -0800 |
commit | d64348ab53bb4d29e6db0095d0be75397b0ad339 (patch) | |
tree | 1bf5d0bb31fcba5f0565902f209a01471b5b6ed3 | |
parent | 59961dd674b91dba66978332a442e09bc0c82ff6 (diff) | |
download | bundler-test-4147.tar.gz |
add spec verifying that #4147 is fixedtest-4147
this test fails when run against the tag v1.11.0, and passes when run against v1.11.2.
-rw-r--r-- | spec/install/gemfile/ruby_spec.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/install/gemfile/ruby_spec.rb b/spec/install/gemfile/ruby_spec.rb new file mode 100644 index 0000000000..9b35e3819c --- /dev/null +++ b/spec/install/gemfile/ruby_spec.rb @@ -0,0 +1,24 @@ +require "spec_helper" + +describe "ruby requirement" do + # As discovered by https://github.com/bundler/bundler/issues/4147, there is + # no test coverage to ensure that adding a gem is possible with a ruby + # requirement. This test verifies the fix, committed in bfbad5c5. + it "allows adding gems" do + install_gemfile <<-G + source "file://#{gem_repo1}" + ruby "#{RUBY_VERSION}" + gem "rack" + G + + install_gemfile <<-G + source "file://#{gem_repo1}" + ruby "#{RUBY_VERSION}" + gem "rack" + gem "rack-obama" + G + + expect(exitstatus).to eq(0) if exitstatus + should_be_installed "rack-obama 1.0" + end +end |