summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <hello@colby.fyi>2018-05-15 22:16:09 +1000
committerColby Swandale <hello@colby.fyi>2018-05-17 00:36:30 +1000
commiteaa3347b52bd8583f09c4af3f480278d58a10cb2 (patch)
treee68c616510e06249fdb2b6fb40f01b4714f33f98
parentd15e453648af5a9a559fd8ce95b7f8940fdbbbd4 (diff)
downloadbundler-eaa3347b52bd8583f09c4af3f480278d58a10cb2.tar.gz
dont explicitly check the Bundler verison string in prstine spec
-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