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.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/commands/lock_spec.rb b/spec/commands/lock_spec.rb
index 834f088703..f1379cc8ca 100644
--- a/spec/commands/lock_spec.rb
+++ b/spec/commands/lock_spec.rb
@@ -94,4 +94,12 @@ describe "bundle lock" do
expect(read_lockfile "lock").to eq(@lockfile)
expect { read_lockfile }.to raise_error(Errno::ENOENT)
end
+
+ it "update specific gems using --update" do
+ lockfile @lockfile.gsub("2.3.2", "2.3.1").gsub("10.0.2", "10.0.1")
+
+ bundle "lock --update rails rake"
+
+ expect(read_lockfile).to eq(@lockfile)
+ end
end