reformat spec to test parse() results separately
This commit is contained in:
parent
67e9ec2c64
commit
1a1b18b62e
@ -5,7 +5,9 @@ describe Yawpa do
|
||||
it "returns everything as arguments when no options present" do
|
||||
config = { }
|
||||
params = ['one', 'two', 'three', 'four']
|
||||
Yawpa.parse(config, params).should eq([[], params])
|
||||
opts, args = Yawpa.parse(config, params)
|
||||
opts.should eq([])
|
||||
args.should eq(params)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user