From 5a1abe074aa044fc89234bcf69d66ba4336758f1 Mon Sep 17 00:00:00 2001 From: Boggs Date: Tue, 28 Jun 2016 04:44:24 +0800 Subject: Use `Bundler::VERSION` for spec Add TODO to change to warn in 2.0 `dup` string for old rgv `dup` string for old rgv --- spec/commands/install_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'spec/commands/install_spec.rb') diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb index 89bc5eee13..5ce0f8e24e 100644 --- a/spec/commands/install_spec.rb +++ b/spec/commands/install_spec.rb @@ -491,13 +491,12 @@ describe "bundle install with gem sources" do gemfile <<-G source "file://#{gem_repo1}" G - ENV["BUNDLER_VERSION"] = "1.13.0.pre.1" bundle :install, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => "999" } - expect(out).to include("You're running Bundler 999 but this project uses #{ENV["BUNDLER_VERSION"]}.") + expect(out).to include("You're running Bundler 999 but this project uses #{Bundler::VERSION}.") bundle :install, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => "999" } - expect(out).not_to include("You're running Bundler 999 but this project uses #{ENV["BUNDLER_VERSION"]}.") + expect(out).not_to include("You're running Bundler 999 but this project uses #{Bundler::VERSION}.") end end end -- cgit v1.2.1