diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-09 17:29:26 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-14 18:52:19 +0100 |
commit | eb8bb8d5ec2e4a5b09256822adbb3892f3fb90b0 (patch) | |
tree | 2c45da08a8cdac1f9dc1597fff566d7e19afac23 | |
parent | 236ccf776f1acaca660df7e1f53046b36afb2f9c (diff) | |
download | bundler-eb8bb8d5ec2e4a5b09256822adbb3892f3fb90b0.tar.gz |
Use exact path to gem in `bundle info` specs
For consistency with `bundle show` specs.
-rw-r--r-- | spec/commands/info_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/commands/info_spec.rb b/spec/commands/info_spec.rb index 70a304823a..c2eaa94380 100644 --- a/spec/commands/info_spec.rb +++ b/spec/commands/info_spec.rb @@ -13,8 +13,8 @@ RSpec.describe "bundle info" do bundle "info rails" expect(out).to include "* rails (2.3.2) \tSummary: This is just a fake gem for testing -\tHomepage: http://example.com" - expect(out).to match(%r{Path\: .*\/rails\-2\.3\.2}) +\tHomepage: http://example.com +\tPath: #{default_bundle_path("gems", "rails-2.3.2")}" end context "given a gem that is not installed" do @@ -50,7 +50,7 @@ RSpec.describe "bundle info" do context "given --path option" do it "prints the path to the gem" do bundle "info rails" - expect(out).to match(%r{.*\/rails\-2\.3\.2}) + expect(out).to eq(default_bundle_path("gems", "rails-2.3.2").to_s) end end end |