From 4768fde2b3cc9f8dcdbac047880f6260446ddc94 Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Tue, 15 May 2018 22:16:09 +1000 Subject: dont explicitly check the Bundler verison string in prstine spec --- spec/commands/pristine_spec.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spec/commands/pristine_spec.rb b/spec/commands/pristine_spec.rb index 54eb2c0b20..ce5f778f5a 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 -- cgit v1.2.1