diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-01-27 10:46:46 +1100 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-01-27 10:46:46 +1100 |
commit | 8490f5bccc77e2916ac30a1d93d57acac8616ea2 (patch) | |
tree | df992f343edad7554e01f6509c459f5ffaea866c | |
parent | ecb3c363fe741c9e67550615d1cd7ac925bcf411 (diff) | |
download | bundler-8490f5bccc77e2916ac30a1d93d57acac8616ea2.tar.gz |
fix rubocop issues
-rw-r--r-- | lib/bundler/cli/info.rb | 2 | ||||
-rw-r--r-- | spec/commands/info_spec.rb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/cli/info.rb b/lib/bundler/cli/info.rb index a2c264e843..094ae93c55 100644 --- a/lib/bundler/cli/info.rb +++ b/lib/bundler/cli/info.rb @@ -15,7 +15,7 @@ module Bundler print_gem_info(spec) end - private + private def print_gem_path(spec) Bundler.ui.info spec.full_gem_path diff --git a/spec/commands/info_spec.rb b/spec/commands/info_spec.rb index ebd2437df6..1780ae0909 100644 --- a/spec/commands/info_spec.rb +++ b/spec/commands/info_spec.rb @@ -15,7 +15,7 @@ describe "bundle info" do 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(/Path\: .*\/rails\-2\.3\.2/) + expect(out).to match(%r{Path\: .*\/rails\-2\.3\.2}) end context "given a gem that is not installed" do @@ -25,7 +25,7 @@ describe "bundle info" do end end - context 'when gem does not have homepage' do + context "when gem does not have homepage" do before do build_repo1 do build_gem "rails", "2.3.2" do |s| @@ -35,15 +35,15 @@ describe "bundle info" do end end - it 'excludes the homepage field from the output' do + it "excludes the homepage field from the output" do expect(out).to_not include("Homepage:") end end - context 'given --path option' do + context "given --path option" do it "prints the path to the gem" do bundle "info rails" - expect(out).to match(/.*\/rails\-2\.3\.2/) + expect(out).to match(%r{.*\/rails\-2\.3\.2}) end end end |