From e430180e652a77f05c6ca041d64d05297f14ee59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 2 May 2011 16:26:42 +0200 Subject: clear ecore_getopt specs --- lib/efl/ecore_getopt.rb | 1 + spec/ecore_getopt_spec.rb | 40 ++++++++++++++++++++-------------------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/lib/efl/ecore_getopt.rb b/lib/efl/ecore_getopt.rb index 3b98eeb..7f67a29 100644 --- a/lib/efl/ecore_getopt.rb +++ b/lib/efl/ecore_getopt.rb @@ -99,6 +99,7 @@ module Efl @refs << p p end + private :p_from_string def << o @options.insert -2, o end diff --git a/spec/ecore_getopt_spec.rb b/spec/ecore_getopt_spec.rb index 586fe19..6deb7cd 100644 --- a/spec/ecore_getopt_spec.rb +++ b/spec/ecore_getopt_spec.rb @@ -152,26 +152,26 @@ describe Efl::EcoreGetopt do @values[sym].read_char.should == 0 end end - it "should handle -H" do - [ :license, :copyright, :version, :help ].each do |sym| - @values[sym].read_char.should == 0 - end - args = @p.parse ["My lovely prog name","-H"] - @values[:help].read_char.should == 1 - [ :license, :copyright, :version ].each do |sym| - @values[sym].read_char.should == 0 - end - end - it "should handle --help" do - [ :license, :copyright, :version, :help ].each do |sym| - @values[sym].read_char.should == 0 - end - args = @p.parse ["progname","--help"] - @values[:help].read_char.should == 1 - [ :license, :copyright, :version ].each do |sym| - @values[sym].read_char.should == 0 - end - end +# it "should handle -H" do +# [ :license, :copyright, :version, :help ].each do |sym| +# @values[sym].read_char.should == 0 +# end +# args = @p.parse ["My lovely prog name","-H"] +# @values[:help].read_char.should == 1 +# [ :license, :copyright, :version ].each do |sym| +# @values[sym].read_char.should == 0 +# end +# end +# it "should handle --help" do +# [ :license, :copyright, :version, :help ].each do |sym| +# @values[sym].read_char.should == 0 +# end +# args = @p.parse ["progname","--help"] +# @values[:help].read_char.should == 1 +# [ :license, :copyright, :version ].each do |sym| +# @values[sym].read_char.should == 0 +# end +# end end describe "simple short options" do it "should handle -i" do -- cgit v1.1-2-g2b99