diff options
author | Smit Shah <who828@gmail.com> | 2014-12-08 12:48:22 +0530 |
---|---|---|
committer | Smit Shah <who828@gmail.com> | 2014-12-08 12:48:22 +0530 |
commit | 305bd9bef6dac88c6c39d0a8f44d42d2a4c48279 (patch) | |
tree | 0574fbf01cafb8c70814f5372f5496dc74a77e5c /spec/realworld | |
parent | 254ed97dd96d5ebffb0147c9c65e7f07d08c89fa (diff) | |
parent | 8fbfe9b79f7ec9706b627793ce49b7607481ff5d (diff) | |
download | bundler-305bd9bef6dac88c6c39d0a8f44d42d2a4c48279.tar.gz |
Merge branch '1-7-stable'
Conflicts:
CHANGELOG.md
Diffstat (limited to 'spec/realworld')
-rw-r--r-- | spec/realworld/edgecases_spec.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/realworld/edgecases_spec.rb b/spec/realworld/edgecases_spec.rb index 263ac520b3..000ded4fd0 100644 --- a/spec/realworld/edgecases_spec.rb +++ b/spec/realworld/edgecases_spec.rb @@ -35,6 +35,41 @@ describe "real world edgecases", :realworld => true do expect(out).to include("activemodel 3.0.5") end + it "resolves dependencies correctly", :ruby => "1.9" do + install_gemfile <<-G + source "https://rubygems.org" + + gem 'rails', '~> 3.0' + gem 'capybara', '~> 2.2.0' + G + expect(out).to include("rails 3.2.21") + expect(out).to include("capybara 2.2.1") + end + + it "installs the latest version of gxapi_rails", :ruby => "1.9" do + install_gemfile <<-G + source "https://rubygems.org" + + gem "sass-rails" + gem "rails", "~> 3" + gem "gxapi_rails" + G + expect(out).to include("gxapi_rails 0.0.6") + end + + it "installs the latest version of i18n" do + install_gemfile <<-G + source "https://rubygems.org" + + gem "i18n", "~> 0.4" + gem "activesupport", "~> 3.0" + gem "activerecord", "~> 3.0" + gem "builder", "~> 2.1.2" + G + expect(out).to include("i18n 0.6.11") + expect(out).to include("activesupport 3.0.5") + end + # https://github.com/bundler/bundler/issues/1500 it "does not fail install because of gem plugins" do realworld_system_gems("open_gem --version 1.4.2", "rake --version 0.9.2") |