Skip to content

Commit 7d49838

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] bin/rubocop -A
ruby/rubygems@e3f418aa11
1 parent 3657700 commit 7d49838

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/bundler/commands/add_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,31 +239,31 @@
239239
describe "with mismatched pair in --git/--github, --branch/--ref" do
240240
describe "with --git and --github" do
241241
it "throws error" do
242-
bundle "add 'foo' --git x --github y", :raise_on_error => false
242+
bundle "add 'foo' --git x --github y", raise_on_error: false
243243

244244
expect(err).to include("You cannot specify `--git` and `--github` at the same time.")
245245
end
246246
end
247247

248248
describe "with --branch and --ref with --git" do
249249
it "throws error" do
250-
bundle "add 'foo' --branch x --ref y --git file://git", :raise_on_error => false
250+
bundle "add 'foo' --branch x --ref y --git file://git", raise_on_error: false
251251

252252
expect(err).to include("You cannot specify `--branch` and `--ref` at the same time.")
253253
end
254254
end
255255

256256
describe "with --branch but without --git or --github" do
257257
it "throws error" do
258-
bundle "add 'foo' --branch x", :raise_on_error => false
258+
bundle "add 'foo' --branch x", raise_on_error: false
259259

260260
expect(err).to include("You cannot specify `--branch` unless `--git` or `--github` is specified.")
261261
end
262262
end
263263

264264
describe "with --ref but without --git or --github" do
265265
it "throws error" do
266-
bundle "add 'foo' --ref y", :raise_on_error => false
266+
bundle "add 'foo' --ref y", raise_on_error: false
267267

268268
expect(err).to include("You cannot specify `--ref` unless `--git` or `--github` is specified.")
269269
end

0 commit comments

Comments
 (0)