Skip to content

Commit

Permalink
add test for - parsing in array
Browse files Browse the repository at this point in the history
test for array parsing of '-'
  • Loading branch information
timothysmith0609 committed Nov 17, 2019
1 parent 459e071 commit 873da2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/parser/arguments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def parse(*args)
expect(parse("product", "title", "age")["array"]).to eq(%w(title age))
end

it "accepts - as an array argument" do
create :array => nil
expect(parse("-")["array"]).to eq(%w(-))
expect(parse("-", "title", "-")["array"]).to eq(%w(- title -))
end

describe "with no inputs" do
it "and no arguments returns an empty hash" do
create
Expand Down

0 comments on commit 873da2a

Please sign in to comment.