diff options
author | Colby Swandale <hello@colby.fyi> | 2018-05-15 22:16:09 +1000 |
---|---|---|
committer | Colby Swandale <hello@colby.fyi> | 2018-05-16 20:30:18 +1000 |
commit | 4768fde2b3cc9f8dcdbac047880f6260446ddc94 (patch) | |
tree | 004a76d494632740973199ae5caf711dcc872340 | |
parent | 9fe9735cecf9d126c4fea5d3f16e2950e3ee3681 (diff) | |
download | bundler-colby/fix-pristine-spec.tar.gz |
dont explicitly check the Bundler verison string in prstine speccolby/fix-pristine-spec
-rw-r--r-- | spec/commands/pristine_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
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 |