summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLee Jarvis <leejarvis@fastmail.com>2017-04-29 16:50:59 +0100
committerLee Jarvis <leejarvis@fastmail.com>2017-04-29 16:50:59 +0100
commit4cead97ee15a463ce90600b18e9733fbfecee722 (patch)
tree779288961558b465067888a04a12a372195ec961 /test
parented049cb2aa7ce30a67661449e75b883f9969722f (diff)
downloadslop-4cead97ee15a463ce90600b18e9733fbfecee722.tar.gz
Fix ridiculous minitest warning
wat?
Diffstat (limited to 'test')
-rw-r--r--test/result_test.rb2
-rw-r--r--test/types_test.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/result_test.rb b/test/result_test.rb
index 3fa61f6..322daa1 100644
--- a/test/result_test.rb
+++ b/test/result_test.rb
@@ -97,7 +97,7 @@ describe Slop::Result do
end
it "returns nil if nothing is found" do
- assert_equal nil, @result.option("foo")
+ assert_nil @result.option("foo")
end
end
diff --git a/test/types_test.rb b/test/types_test.rb
index 43c356e..c1aabaa 100644
--- a/test/types_test.rb
+++ b/test/types_test.rb
@@ -41,7 +41,7 @@ describe Slop::IntegerOption do
it "returns nil for non-numbers by default" do
@result.parser.parse %w(--age hello)
- assert_equal nil, @result[:age]
+ assert_nil @result[:age]
end
end
@@ -59,7 +59,7 @@ describe Slop::FloatOption do
it "returns nil for non-numbers by default" do
@result.parser.parse %w(--apr hello)
- assert_equal nil, @result[:apr]
+ assert_nil @result[:apr]
end
end