diff options
author | Colby Swandale <me@colby.fyi> | 2018-11-04 21:38:35 +1100 |
---|---|---|
committer | Colby Swandale <me@colby.fyi> | 2018-11-08 21:54:57 +1100 |
commit | ed413c68c653827e7430ce3eac2140fd7d95edc1 (patch) | |
tree | 210acd7afcedbcc8959eab598736c4ed35c6069e | |
parent | 856da395b4920fcecb1375462e0fd899cb61f6bf (diff) | |
download | bundler-ed413c68c653827e7430ce3eac2140fd7d95edc1.tar.gz |
bump features/flags in spec helpers to bundler 3
-rw-r--r-- | spec/bundler/ui/shell_spec.rb | 4 | ||||
-rw-r--r-- | spec/support/helpers.rb | 2 | ||||
-rw-r--r-- | spec/support/path.rb | 2 | ||||
-rw-r--r-- | spec/support/platforms.rb | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/spec/bundler/ui/shell_spec.rb b/spec/bundler/ui/shell_spec.rb index 6de2330687..951a446aff 100644 --- a/spec/bundler/ui/shell_spec.rb +++ b/spec/bundler/ui/shell_spec.rb @@ -21,7 +21,7 @@ RSpec.describe Bundler::UI::Shell do describe "#warn" do before { subject.level = "warn" } - it "prints to stdout", :bundler => "< 3" do + it "prints to stdout", :bundler => "< 2" do expect { subject.warn("warning") }.to output("warning\n").to_stdout end @@ -46,7 +46,7 @@ RSpec.describe Bundler::UI::Shell do describe "#error" do before { subject.level = "error" } - it "prints to stdout", :bundler => "< 3" do + it "prints to stdout", :bundler => "< 2" do expect { subject.error("error!!!") }.to output("error!!!\n").to_stdout end diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index d64b3923d5..dbe5c665e5 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -51,7 +51,7 @@ module Spec end def bundle_update_requires_all? - Bundler::VERSION.start_with?("1.") ? nil : true + Bundler::VERSION.start_with?("2.") ? nil : true end def in_app_root(&blk) diff --git a/spec/support/path.rb b/spec/support/path.rb index b24ac16d5b..a8bc50f5f4 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -29,7 +29,7 @@ module Spec end def default_bundle_path(*path) - if Bundler::VERSION.split(".").first.to_i < 2 + if Bundler::VERSION.split(".").first.to_i < 3 system_gem_path(*path) else bundled_app(*[".bundle", ENV.fetch("BUNDLER_SPEC_RUBY_ENGINE", Gem.ruby_engine), Gem::ConfigMap[:ruby_version], *path].compact) diff --git a/spec/support/platforms.rb b/spec/support/platforms.rb index 39040a61bd..950311d20e 100644 --- a/spec/support/platforms.rb +++ b/spec/support/platforms.rb @@ -106,7 +106,7 @@ module Spec end def local_platforms - if Bundler::VERSION.split(".").first.to_i > 1 + if Bundler::VERSION.split(".").first.to_i > 2 [local, specific_local_platform] else [local] |