test/grammar_test.rb in toml-rb-1.1.1 vs test/grammar_test.rb in toml-rb-1.1.2
- old
+ new
@@ -2,10 +2,10 @@
require_relative 'helper'
class GrammarTest < Minitest::Test
def test_comment
match = TomlRB::Document.parse(' # A comment', root: :comment)
- assert_equal(nil, match.value)
+ assert_nil(match.value)
end
def test_key
match = TomlRB::Document.parse('bad_key-', root: :key)
assert_equal('bad_key-', match.value)