diff options
author | Boggs <hello.boggs@gmail.com> | 2016-06-01 16:46:34 +0800 |
---|---|---|
committer | Boggs <hello.boggs@gmail.com> | 2016-06-13 16:54:58 +0800 |
commit | 7b4fa7bfd2798361c11b8dd9699008d408672330 (patch) | |
tree | 529da20af20780003996541ebf1a8cf1dcf62b27 /spec/commands | |
parent | 0fec9df35e37ec5fb5b4f37a1fb3c8eada4f2df6 (diff) | |
download | bundler-7b4fa7bfd2798361c11b8dd9699008d408672330.tar.gz |
Fix rubocop offenses
Diffstat (limited to 'spec/commands')
-rw-r--r-- | spec/commands/add_spec.rb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/spec/commands/add_spec.rb b/spec/commands/add_spec.rb index 3cc26a16..5cf75e95 100644 --- a/spec/commands/add_spec.rb +++ b/spec/commands/add_spec.rb @@ -1,21 +1,22 @@ -require 'spec_helper' +# frozen_string_literal: true +require "spec_helper" describe "bundle add" do before :each do gemfile end - context 'when version number is set' do - it 'adds gem with provided version' do - bundle 'add foo 1.2.3' - expect(bundled_app('Gemfile').read).to match(/gem 'foo', '~> 1.2'/) + context "when version number is set" do + it "adds gem with provided version" do + bundle "add foo 1.2.3" + expect(bundled_app("Gemfile").read).to match(/gem "foo", "~> 1.2"/) end end - context 'when version number is not set' do - it 'adds gem with last stable version' do - bundle 'add foobar', fakeweb: 'rubygems_api' - expect(bundled_app('Gemfile').read).to match(/gem 'foobar', '~> 1.2'/) + context "when version number is not set" do + it "adds gem with last stable version" do + bundle "add foobar", :fakeweb => "rubygems_api" + expect(bundled_app("Gemfile").read).to match(/gem "foobar", "~> 1.2"/) end end end |