From 1a1b18b62eecae6898faad4cfb0845abb2c50442 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 20 Jan 2013 20:35:34 -0500 Subject: [PATCH] reformat spec to test parse() results separately --- spec/yawpa_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/yawpa_spec.rb b/spec/yawpa_spec.rb index 5c30f03..8f9e9b3 100644 --- a/spec/yawpa_spec.rb +++ b/spec/yawpa_spec.rb @@ -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