Skip to content

Commit

Permalink
Merge pull request rails#623 from marcandre/remove_dup
Browse files Browse the repository at this point in the history
Remove duplicate option creation in spec
  • Loading branch information
rafaelfranca authored Sep 18, 2018
2 parents d91e8ca + 75f6712 commit 7a36534
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spec/parser/options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a36534

Please sign in to comment.