summaryrefslogtreecommitdiff
path: root/spec/update
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-07-27 12:07:11 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-02 15:04:28 -0500
commitc607f20d7d200c18cc26edb1346dda847cc4331e (patch)
treeacf0e680184455241cfea3104a48f6c81ff316d0 /spec/update
parent52285c7cefc0daaa99784945a7bc119102f68944 (diff)
downloadbundler-c607f20d7d200c18cc26edb1346dda847cc4331e.tar.gz
[Matchers] Add TheBundle class to make custom matchers more fluent
Diffstat (limited to 'spec/update')
-rw-r--r--spec/update/git_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb
index 25dff6818e..6228e25ea4 100644
--- a/spec/update/git_spec.rb
+++ b/spec/update/git_spec.rb
@@ -19,7 +19,7 @@ describe "bundle update" do
bundle "update"
- should_be_installed "foo 1.1"
+ expect(the_bundle).to have_installed "foo 1.1"
end
it "updates correctly when you have like craziness" do
@@ -34,7 +34,7 @@ describe "bundle update" do
bundle "update rails"
expect(out).to include("Using activesupport 3.0 from #{lib_path("rails")} (at master@#{revision_for(lib_path("rails"))[0..6]})")
- should_be_installed "rails 3.0", "activesupport 3.0"
+ expect(the_bundle).to have_installed "rails 3.0", "activesupport 3.0"
end
it "floats on a branch when :branch is used and the source is specified in the update" do
@@ -53,7 +53,7 @@ describe "bundle update" do
bundle "update --source foo"
- should_be_installed "foo 1.1"
+ expect(the_bundle).to have_installed "foo 1.1"
end
it "floats on master when updating all gems that are pinned to the source even if you have child dependencies" do
@@ -73,7 +73,7 @@ describe "bundle update" do
bundle "update foo"
- should_be_installed "foo 1.1"
+ expect(the_bundle).to have_installed "foo 1.1"
end
it "notices when you change the repo url in the Gemfile" do
@@ -268,7 +268,7 @@ describe "bundle update" do
update_git "foo", "2.0", :path => @git.path
bundle "update --source foo"
- should_be_installed "foo 2.0"
+ expect(the_bundle).to have_installed "foo 2.0"
end
it "leaves all other gems frozen" do
@@ -276,7 +276,7 @@ describe "bundle update" do
update_git "foo", :path => @git.path
bundle "update --source foo"
- should_be_installed "rack 1.0"
+ expect(the_bundle).to have_installed "rack 1.0"
end
end