summaryrefslogtreecommitdiff
path: root/spec/lock
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-08-02 15:01:29 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-02 15:04:28 -0500
commit220695122ff4de38a941afb8153f18f8b6667658 (patch)
tree03208226045886acf6801f4cb5fbd81e93c2b494 /spec/lock
parent9d43a0504023926e8457832d0841d8d44a6217c5 (diff)
downloadbundler-220695122ff4de38a941afb8153f18f8b6667658.tar.gz
Use `include_gem` as the matcher name
Diffstat (limited to 'spec/lock')
-rw-r--r--spec/lock/git_spec.rb2
-rw-r--r--spec/lock/lockfile_spec.rb14
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/lock/git_spec.rb b/spec/lock/git_spec.rb
index db88aed750..93473db052 100644
--- a/spec/lock/git_spec.rb
+++ b/spec/lock/git_spec.rb
@@ -11,7 +11,7 @@ describe "bundle lock with git gems" do
end
it "doesn't break right after running lock" do
- expect(the_bundle).to have_installed "foo 1.0.0"
+ expect(the_bundle).to include_gems "foo 1.0.0"
end
it "locks a git source to the current ref" do
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb
index 964fd5261d..37035eaaf9 100644
--- a/spec/lock/lockfile_spec.rb
+++ b/spec/lock/lockfile_spec.rb
@@ -413,7 +413,7 @@ describe "the lockfile format" do
#{Bundler::VERSION}
G
- expect(the_bundle).to have_installed "net-sftp 1.1.1", "net-ssh 1.0.0"
+ expect(the_bundle).to include_gems "net-sftp 1.1.1", "net-ssh 1.0.0"
end
it "generates a simple lockfile for a single pinned source, gem with a version requirement" do
@@ -480,7 +480,7 @@ describe "the lockfile format" do
L
bundle "install"
- expect(the_bundle).to have_installed "rack 1.0.0"
+ expect(the_bundle).to include_gems "rack 1.0.0"
end
it "serializes global git sources" do
@@ -1168,7 +1168,7 @@ describe "the lockfile format" do
G
bundle "install --path vendor"
- expect(the_bundle).to have_installed "omg 1.0"
+ expect(the_bundle).to include_gems "omg 1.0"
# Create a Gemfile.lock that has duplicate GIT sections
lockfile <<-L
@@ -1202,7 +1202,7 @@ describe "the lockfile format" do
FileUtils.rm_rf(bundled_app("vendor"))
bundle "install"
- expect(the_bundle).to have_installed "omg 1.0"
+ expect(the_bundle).to include_gems "omg 1.0"
# Confirm that duplicate specs do not appear
expect(File.read(bundled_app("Gemfile.lock"))).to eq(strip_whitespace(<<-L))
@@ -1245,7 +1245,7 @@ describe "the lockfile format" do
it "generates Gemfile.lock with \\n line endings" do
expect(File.read(bundled_app("Gemfile.lock"))).not_to match("\r\n")
- expect(the_bundle).to have_installed "rack 1.0"
+ expect(the_bundle).to include_gems "rack 1.0"
end
context "during updates" do
@@ -1254,7 +1254,7 @@ describe "the lockfile format" do
expect { bundle "update" }.to change { File.mtime(bundled_app("Gemfile.lock")) }
expect(File.read(bundled_app("Gemfile.lock"))).not_to match("\r\n")
- expect(the_bundle).to have_installed "rack 1.2"
+ expect(the_bundle).to include_gems "rack 1.2"
end
it "preserves Gemfile.lock \\n\\r line endings" do
@@ -1265,7 +1265,7 @@ describe "the lockfile format" do
expect { bundle "update" }.to change { File.mtime(bundled_app("Gemfile.lock")) }
expect(File.read(bundled_app("Gemfile.lock"))).to match("\r\n")
- expect(the_bundle).to have_installed "rack 1.2"
+ expect(the_bundle).to include_gems "rack 1.2"
end
end