summaryrefslogtreecommitdiff
path: root/spec/commands/pristine_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/pristine_spec.rb')
-rw-r--r--spec/commands/pristine_spec.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/commands/pristine_spec.rb b/spec/commands/pristine_spec.rb
index 5b9dffce98..9c3918f51e 100644
--- a/spec/commands/pristine_spec.rb
+++ b/spec/commands/pristine_spec.rb
@@ -128,16 +128,21 @@ RSpec.describe "bundle pristine" do
FileUtils.touch(weakling_changes_txt)
expect(weakling_changes_txt).to be_file
- bundle! "pristine foo bar weakling bundler"
+ bundle! "pristine foo bar weakling"
expect(out).to eq(strip_whitespace(<<-EOS).strip)
- Installing weakling 1.0
- Using foo 1.0 from #{lib_path("foo")} (at master@#{foo_ref})
Cannot pristine bar (1.0). Gem is sourced from local path.
+ Using foo 1.0 from #{lib_path("foo")} (at master@#{foo_ref})
+ Installing weakling 1.0
EOS
expect(weakling_changes_txt).not_to be_file
expect(foo_changes_txt).not_to be_file
expect(bar_changes_txt).to be_file
end
+
+ it "raises when one of them is not in the lockfile" do
+ bundle "pristine abcabcabc"
+ expect(out).to include("Could not find gem 'abcabcabc'.")
+ end
end
end