spec/option_spec.rb in rprogram-0.2.0 vs spec/option_spec.rb in rprogram-0.2.1

- old
+ new

@@ -2,9 +2,17 @@ require 'spec_helper' require 'option_examples' describe Option do + describe "custom formatting" do + it "should allow the format block to return nil" do + opt = Option.new(:flag => '-f') { |opt,value| } + + opt.arguments('bla').should == [] + end + end + describe "single flag" do before(:all) do @option = Option.new(:flag => '-f') end