From 326e7c059214ecf9bebce42e328c4039755ab671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 19 Jun 2011 19:15:44 +0200 Subject: show ecore getopt internals if env var DEBUG is set --- spec/ecore_getopt_spec.rb | 6 ++++-- 1 file 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"] -- cgit v1.1-2-g2b99