summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-09-04 13:48:37 -0700
committerAndre Arko <andre@arko.net>2013-09-04 13:48:37 -0700
commit5df697b8e400bfdf2c77762ae207c1a1b92bfa0b (patch)
treedf4441ea8542a2768df3e55883160b30e2b2abe1
parentf920e9e315c0b0c3eb4fa784ae9a3cbfdb5af70a (diff)
downloadbundler-old-gem-version.tar.gz
one test each for gem, git, and pathold-gem-version
-rw-r--r--spec/bundle-update-old-gem-version.rb17
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