reformat spec to test parse() results separately
This commit is contained in:
1 parent
67e9ec2c64
commit
1a1b18b62e
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
Reference in new issue
Block a user