Skip to content

Commit 7a36534

Browse files
authored
Merge pull request #623 from marcandre/remove_dup
Remove duplicate option creation in spec
2 parents d91e8ca + 75f6712 commit 7a36534

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

spec/parser/options_spec.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,19 +345,16 @@ def remaining
345345
end
346346

347347
it "doesn't eat the next part of the param" do
348-
create :foo => :boolean
349348
expect(parse("--foo", "bar")).to eq("foo" => true)
350349
expect(@opt.remaining).to eq(%w(bar))
351350
end
352351

353352
it "doesn't eat the next part of the param with 'no-opt' variant" do
354-
create :foo => :boolean
355353
expect(parse("--no-foo", "bar")).to eq("foo" => false)
356354
expect(@opt.remaining).to eq(%w(bar))
357355
end
358356

359357
it "doesn't eat the next part of the param with 'skip-opt' variant" do
360-
create :foo => :boolean
361358
expect(parse("--skip-foo", "bar")).to eq("foo" => false)
362359
expect(@opt.remaining).to eq(%w(bar))
363360
end

0 commit comments

Comments
 (0)