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.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/commands/pristine_spec.rb b/spec/commands/pristine_spec.rb
index 54eb2c0b20..140b111d2d 100644
--- a/spec/commands/pristine_spec.rb
+++ b/spec/commands/pristine_spec.rb
@@ -46,7 +46,14 @@ RSpec.describe "bundle pristine" do
bundle! "install"
bundle! "pristine", :system_bundler => true
bundle! "-v", :system_bundler => true
- expect(out).to end_with(Bundler::VERSION)
+
+ expected = if Bundler::VERSION < "2.0"
+ "Bundler version"
+ else
+ Bundler::VERSION
+ end
+
+ expect(out).to start_with(expected)
end
end