summaryrefslogtreecommitdiff
path: root/spec/commands/update_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-08-01 20:35:31 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-03 09:24:00 -0500
commit29fb4282ea198b2c62d2a580d8ab1ba1fb54de3b (patch)
treebdaaf5c6584afcfbb5416973d755c35d88f967d6 /spec/commands/update_spec.rb
parentdafad010679f89aa1b66ee1770f9f4ac4c72e386 (diff)
downloadbundler-29fb4282ea198b2c62d2a580d8ab1ba1fb54de3b.tar.gz
Remove expect_err from the specs & print all output on a spec failure
Diffstat (limited to 'spec/commands/update_spec.rb')
-rw-r--r--spec/commands/update_spec.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index 3c1cb566af..19fbb8388c 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -55,11 +55,11 @@ describe "bundle update" do
describe "with an unknown dependency" do
it "should inform the user" do
- bundle "update halting-problem-solver", :expect_err => true
+ bundle "update halting-problem-solver"
expect(out).to include "Could not find gem 'halting-problem-solver'"
end
it "should suggest alternatives" do
- bundle "update active-support", :expect_err => true
+ bundle "update active-support"
expect(out).to include "Did you mean activesupport?"
end
end
@@ -336,23 +336,23 @@ end
describe "bundle update --ruby" do
before do
- install_gemfile <<-G, :expect_err => true
+ install_gemfile <<-G
::RUBY_VERSION = '2.1.3'
::RUBY_PATCHLEVEL = 100
ruby '~> 2.1.0'
G
- bundle "update --ruby", :expect_err => true
+ bundle "update --ruby"
end
context "when the Gemfile removes the ruby" do
before do
- install_gemfile <<-G, :expect_err => true
+ install_gemfile <<-G
::RUBY_VERSION = '2.1.4'
::RUBY_PATCHLEVEL = 222
G
end
it "removes the Ruby from the Gemfile.lock" do
- bundle "update --ruby", :expect_err => true
+ bundle "update --ruby"
lockfile_should_be <<-L
GEM
@@ -371,14 +371,14 @@ describe "bundle update --ruby" do
context "when the Gemfile specified an updated Ruby version" do
before do
- install_gemfile <<-G, :expect_err => true
+ install_gemfile <<-G
::RUBY_VERSION = '2.1.4'
::RUBY_PATCHLEVEL = 222
ruby '~> 2.1.0'
G
end
it "updates the Gemfile.lock with the latest version" do
- bundle "update --ruby", :expect_err => true
+ bundle "update --ruby"
lockfile_should_be <<-L
GEM
@@ -400,14 +400,14 @@ describe "bundle update --ruby" do
context "when a different Ruby is being used than has been versioned" do
before do
- install_gemfile <<-G, :expect_err => true
+ install_gemfile <<-G
::RUBY_VERSION = '2.2.2'
::RUBY_PATCHLEVEL = 505
ruby '~> 2.1.0'
G
end
it "shows a helpful error message" do
- bundle "update --ruby", :expect_err => true
+ bundle "update --ruby"
expect(out).to include("Your Ruby version is 2.2.2, but your Gemfile specified ~> 2.1.0")
end
@@ -415,14 +415,14 @@ describe "bundle update --ruby" do
context "when updating Ruby version and Gemfile `ruby`" do
before do
- install_gemfile <<-G, :expect_err => true
+ install_gemfile <<-G
::RUBY_VERSION = '1.8.3'
::RUBY_PATCHLEVEL = 55
ruby '~> 1.8.0'
G
end
it "updates the Gemfile.lock with the latest version" do
- bundle "update --ruby", :expect_err => true
+ bundle "update --ruby"
lockfile_should_be <<-L
GEM