From 75f6712907545d302c0f7e57328c925c7a68d12d Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Tue, 18 Sep 2018 14:16:17 -0400 Subject: [PATCH] Remove duplicate option creation in spec --- spec/parser/options_spec.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/parser/options_spec.rb b/spec/parser/options_spec.rb index a13730457..6f097c391 100644 --- a/spec/parser/options_spec.rb +++ b/spec/parser/options_spec.rb @@ -345,19 +345,16 @@ def remaining end it "doesn't eat the next part of the param" do - create :foo => :boolean expect(parse("--foo", "bar")).to eq("foo" => true) expect(@opt.remaining).to eq(%w(bar)) end it "doesn't eat the next part of the param with 'no-opt' variant" do - create :foo => :boolean expect(parse("--no-foo", "bar")).to eq("foo" => false) expect(@opt.remaining).to eq(%w(bar)) end it "doesn't eat the next part of the param with 'skip-opt' variant" do - create :foo => :boolean expect(parse("--skip-foo", "bar")).to eq("foo" => false) expect(@opt.remaining).to eq(%w(bar)) end