diff options
Diffstat (limited to 'spec/bundler/fetcher_spec.rb')
-rw-r--r-- | spec/bundler/fetcher_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb index d7da9377..4e9a8d18 100644 --- a/spec/bundler/fetcher_spec.rb +++ b/spec/bundler/fetcher_spec.rb @@ -5,7 +5,7 @@ describe Bundler::Fetcher do subject(:fetcher) { Bundler::Fetcher.new(double("remote", :uri => URI("https://example.com"))) } before do - allow(Bundler).to receive(:root){ Pathname.new("root") } + allow(Bundler).to receive(:root) { Pathname.new("root") } end describe "#user_agent" do @@ -20,14 +20,14 @@ describe Bundler::Fetcher do describe "include CI information" do it "from one CI" do with_env_vars({ "JENKINS_URL" => "foo" }) do - ci_part = fetcher.user_agent.split(" ").find{|x| x.match(/\Aci\//) } + ci_part = fetcher.user_agent.split(" ").find {|x| x.match(/\Aci\//) } expect(ci_part).to match("jenkins") end end it "from many CI" do with_env_vars({ "TRAVIS" => "foo", "CI_NAME" => "my_ci" }) do - ci_part = fetcher.user_agent.split(" ").find{|x| x.match(/\Aci\//) } + ci_part = fetcher.user_agent.split(" ").find {|x| x.match(/\Aci\//) } expect(ci_part).to match("travis") expect(ci_part).to match("my_ci") end |