summaryrefslogtreecommitdiff
path: root/spec/commands/lock_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/lock_spec.rb')
-rw-r--r--spec/commands/lock_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/commands/lock_spec.rb b/spec/commands/lock_spec.rb
index a0b8abefae..11742dede6 100644
--- a/spec/commands/lock_spec.rb
+++ b/spec/commands/lock_spec.rb
@@ -105,6 +105,15 @@ RSpec.describe "bundle lock" do
expect(read_lockfile).to eq(@lockfile)
end
+ it "errors when updating a missing specific gems using --update" do
+ lockfile @lockfile
+
+ bundle "lock --update blahblah"
+ expect(out).to eq("Could not find gem 'blahblah'.")
+
+ expect(read_lockfile).to eq(@lockfile)
+ end
+
# see update_spec for more coverage on same options. logic is shared so it's not necessary
# to repeat coverage here.
context "conservative updates" do