summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-02 16:26:42 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-02 16:26:42 +0200
commite430180e652a77f05c6ca041d64d05297f14ee59 (patch)
treef79c6c6099cf89292d686d187ee4a225271ffc72
parent2179051f19d698ec363a3277645b842aafdc4e58 (diff)
downloadffi-efl-e430180e652a77f05c6ca041d64d05297f14ee59.zip
ffi-efl-e430180e652a77f05c6ca041d64d05297f14ee59.tar.gz
clear ecore_getopt specs
-rw-r--r--lib/efl/ecore_getopt.rb1
-rw-r--r--spec/ecore_getopt_spec.rb40
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