From 8490f5bccc77e2916ac30a1d93d57acac8616ea2 Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Fri, 27 Jan 2017 10:46:46 +1100 Subject: fix rubocop issues --- lib/bundler/cli/info.rb | 2 +- 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 -- cgit v1.2.1