diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-09 17:39:27 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-14 18:52:20 +0100 |
commit | b00b3a3569b037bfbfbcb5ee1c1d84788db892ee (patch) | |
tree | 81a16c3cafcf221b15b1f9eaa704ef32c9b3db0f | |
parent | 844e3499ac3b5c584d40b83ca177b7d6d885beb6 (diff) | |
download | bundler-b00b3a3569b037bfbfbcb5ee1c1d84788db892ee.tar.gz |
Slight tweak to some other specs
To be just like how current `bundle show` is tested.
-rw-r--r-- | spec/commands/info_spec.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/commands/info_spec.rb b/spec/commands/info_spec.rb index 76cbda2612..48ed4bd528 100644 --- a/spec/commands/info_spec.rb +++ b/spec/commands/info_spec.rb @@ -9,7 +9,7 @@ RSpec.describe "bundle info" do G end - it "prints information about the current gem" do + it "prints information if gem exists in bundle" do bundle "info rails" expect(out).to include "* rails (2.3.2) \tSummary: This is just a fake gem for testing @@ -17,11 +17,9 @@ RSpec.describe "bundle info" do \tPath: #{default_bundle_path("gems", "rails-2.3.2")}" end - context "given a gem that is not installed" do - it "prints missing gem error" do - bundle "info foo" - expect(err).to eq "Could not find gem 'foo'." - end + it "complains if gem not in bundle" do + bundle "info missing" + expect(err).to eq("Could not find gem 'missing'.") end context "given a default gem shippped in ruby", :ruby_repo do |