diff options
Diffstat (limited to 'spec/lock/lockfile_spec.rb')
-rw-r--r-- | spec/lock/lockfile_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
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 |