test/scientist_test.rb in boson-0.2.2 vs test/scientist_test.rb in boson-0.2.3
- old
+ new
@@ -320,9 +320,13 @@
test "global option after local one and -" do
local_and_global("doh -r -f - --dude").should == [{:foo=>true}, {:dude=>true, :render=>true}]
end
+ test "conflicting global option after -" do
+ local_and_global('doh - -f=1,2').should == [{}, {:fields=>["1", "2"]}]
+ end
+
test "no options parsed after --" do
local_and_global('doh -f -- -r').should == [{:foo=>true}, {}]
local_and_global('doh -- -r -f').should == [{}, {}]
local_and_global('-- -r -f').should == [{}, {}]
local_and_global('doh -r -- -f').should == [{}, {:render=>true}]