diff options
author | Boggs <hello@boggs.xyz> | 2016-07-25 04:44:05 +0800 |
---|---|---|
committer | Boggs <hello@boggs.xyz> | 2016-07-29 11:42:59 +0800 |
commit | 2cf6a8a5c411a8a13d7a21c50675b8f845ccda93 (patch) | |
tree | 8c5a2bdb6009593ef0c9b67c80a20703c78451ae | |
parent | 478294a50e815385efe7fd425df618b9675efc45 (diff) | |
download | bundler-2cf6a8a5c411a8a13d7a21c50675b8f845ccda93.tar.gz |
Move message to `stderr`
Use `warn`
-rw-r--r-- | spec/other/trampoline_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/other/trampoline_spec.rb b/spec/other/trampoline_spec.rb index 8f62cb609a..7d0e12d5ba 100644 --- a/spec/other/trampoline_spec.rb +++ b/spec/other/trampoline_spec.rb @@ -76,7 +76,7 @@ describe "bundler version trampolining" do it "guesses & installs the correct bundler version" do expect(system_gem_path.join("gems", "bundler-1.12.3")).not_to exist bundle! "--version" - expect(out).to include("Bundler version 1.12.3") + expect(out).to eq("Bundler version 1.12.3") expect(system_gem_path.join("gems", "bundler-1.12.3")).to exist end @@ -93,7 +93,7 @@ The error was: it "displays installing message before install is started" do expect(system_gem_path.join("gems", "bundler-1.12.3")).not_to exist bundle! "--version" - expect(out).to include("Installing locked Bundler version = #{ENV["BUNDLER_VERSION"]}") + expect(err).to include("Installing locked Bundler version = #{ENV["BUNDLER_VERSION"]}") end it "doesn't display installing message if locked version is installed" do @@ -101,7 +101,7 @@ The error was: bundle! "--version" expect(system_gem_path.join("gems", "bundler-1.12.3")).to exist bundle! "--version" - expect(out).not_to include("Installing locked Bundler version = #{ENV["BUNDLER_VERSION"]}") + expect(err).not_to include("Installing locked Bundler version = #{ENV["BUNDLER_VERSION"]}") end end |