reformat spec to test parse() results separately

This commit is contained in:
Josh Holtrop 2013-01-20 20:35:34 -05:00
parent 67e9ec2c64
commit 1a1b18b62e

View File

@ -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