summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2012-04-30 11:16:50 +0100
committerLee Jarvis <lee@jarvis.co>2012-04-30 11:16:50 +0100
commitfcc2debaa4a2f0f4590c06fd2a54085318cc41e4 (patch)
treeeed8c0028923a30c1ccfebfd733813fe00c81820 /test
parent382dbd0918e829c40831b4cefa613306aba08f74 (diff)
downloadslop-fcc2debaa4a2f0f4590c06fd2a54085318cc41e4.tar.gz
avoid using instance_variable_defined? for checking value
ref #59
Diffstat (limited to 'test')
-rw-r--r--test/slop_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/slop_test.rb b/test/slop_test.rb
index 826a73f..2ccadb2 100644
--- a/test/slop_test.rb
+++ b/test/slop_test.rb
@@ -159,7 +159,7 @@ class SlopTest < TestCase
test "to_hash()" do
opts = Slop.new { on :foo=; on :bar; on :baz; on :zip }
opts.parse(%w'--foo hello --no-bar --baz')
- assert_equal({ :foo => 'hello', :bar => false, :baz => true, :zip => false }, opts.to_hash)
+ assert_equal({ :foo => 'hello', :bar => false, :baz => true, :zip => nil }, opts.to_hash)
end
test "missing() returning all missing option keys" do