summaryrefslogtreecommitdiffstats
path: root/spec/ecore_getopt_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-19 19:15:44 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-19 19:15:44 +0200
commit326e7c059214ecf9bebce42e328c4039755ab671 (patch)
tree66f59eb536a094db414d37f2513e82eb6f580a21 /spec/ecore_getopt_spec.rb
parent6379d81c32a6409029e227b55429ae1495112de8 (diff)
downloadffi-efl-326e7c059214ecf9bebce42e328c4039755ab671.zip
ffi-efl-326e7c059214ecf9bebce42e328c4039755ab671.tar.gz
show ecore getopt internals if env var DEBUG is set
Diffstat (limited to 'spec/ecore_getopt_spec.rb')
-rw-r--r--spec/ecore_getopt_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/ecore_getopt_spec.rb b/spec/ecore_getopt_spec.rb
index 7ae9ce3..e8fef67 100644
--- a/spec/ecore_getopt_spec.rb
+++ b/spec/ecore_getopt_spec.rb
@@ -59,8 +59,10 @@ describe Efl::EcoreGetopt do
end
#
describe "license copyright version help" do
- it "DEBUG" do
- puts @p.debug
+ if ENV['DEBUG']
+ it "DEBUG" do
+ puts @p.debug
+ end
end
it "should handle -L" do
args = @p.parse ["My lovely prog name","-L"]