Skip to content

Commit

Permalink
Merge pull request #107 from npras/bug/fix-test-warnings
Browse files Browse the repository at this point in the history
Fix test warnings
  • Loading branch information
kbrock committed Jun 30, 2019
2 parents f22e884 + 36f983b commit d1d8c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/optimist/parser_test.rb
Expand Up @@ -390,12 +390,12 @@ def test_short_options_combine
opts = @p.parse %w(-a -b)
assert_equal true, opts[:arg1]
assert_equal true, opts[:arg2]
assert_equal nil, opts[:arg3]
assert_nil opts[:arg3]

opts = @p.parse %w(-ab)
assert_equal true, opts[:arg1]
assert_equal true, opts[:arg2]
assert_equal nil, opts[:arg3]
assert_nil opts[:arg3]

opts = @p.parse %w(-ac 4 -b)
assert_equal true, opts[:arg1]
Expand Down Expand Up @@ -464,7 +464,7 @@ def test_integer_formatting
assert_equal 5, opts[:arg]
end

def test_integer_formatting
def test_integer_formatting_default
@p.opt :arg, "desc", :type => :integer, :short => "i", :default => 3
opts = @p.parse %w(-i)
assert_equal 3, opts[:arg]
Expand Down

0 comments on commit d1d8c60

Please sign in to comment.