diff options
-rw-r--r-- | spec/bundle-update-old-gem-version.rb | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/bundle-update-old-gem-version.rb b/spec/bundle-update-old-gem-version.rb index 4ab420a269..6eac291ceb 100644 --- a/spec/bundle-update-old-gem-version.rb +++ b/spec/bundle-update-old-gem-version.rb @@ -12,20 +12,13 @@ describe "bundle update" do bundle "update" expect(out).to include("Using activesupport (2.3.5)") - end - it "updates to activesupport 3.0" do update_repo2 do build_gem "activesupport", "3.0" end - install_gemfile <<-G - source "file://#{gem_repo2}" - gem "activesupport" - G - bundle "update" - expect(out).to include("Using activesupport (3.0) was (2.3.5)") + expect(out).to include("Using activesupport (3.0, was 2.3.5)") end it "shows the old version of the gem being updated from git" do @@ -35,8 +28,10 @@ describe "bundle update" do gem "rails", :git => "#{lib_path('rails')}" G + build_git "rails", "3.1", :path => lib_path("rails") + bundle "update" - expect(out).to include("Using rails (3.0) from #{lib_path('rails')} (at master)") + expect(out).to include("Using rails (3.1, was 3.0) from #{lib_path('rails')} (at master)") end @@ -48,6 +43,6 @@ describe "bundle update" do G bundle "update" - expect(out).to include("Using activesupport (3.0) from source at #{lib_path('rails/activesupport')}") + expect(out).to include("Using activesupport (3.1, was 3.0) from source at #{lib_path('rails/activesupport')}") end -end
\ No newline at end of file +end |