mojombo / chronic

Chronic is a pure Ruby natural language date parser.
http://injekt.github.com/chronic
MIT License
3.24k stars 458 forks source link

Fix warnings: `Use assert_nil if expecting nil` in MT6 #353

Closed koic closed 7 years ago

koic commented 7 years ago

Fix following deprecation warnings in rake test.

% rake test
Run options: --seed 17369

# Running:

......................................................................................................................................................Use assert_nil if expecting nil from /Users/koic/src/github.com/mojombo/chronic/test/test_parsing.rb:532:in `test_handle_o_r_s_r'. This will fail in MT6.
......Use assert_nil if expecting nil from /Users/koic/src/github.com/mojombo/chronic/test/test_parsing.rb:1063:in `test_parse_guess_nonsense'. This will fail in MT6.
Use assert_nil if expecting nil from /Users/koic/src/github.com/mojombo/chronic/test/test_parsing.rb:1066:in `test_parse_guess_nonsense'. This will fail in MT6.
Use assert_nil if expecting nil from /Users/koic/src/github.com/mojombo/chronic/test/test_parsing.rb:1069:in `test_parse_guess_nonsense'. This will fail in MT6.
..................Use assert_nil if expecting nil from /Users/koic/src/github.com/mojombo/chronic/test/test_parsing.rb:516:in `test_handle_orr'. This will fail in MT6.
..........

Finished in 2.172705s, 84.6871 runs/s, 513.1852 assertions/s.

184 runs, 1115 assertions, 0 failures, 0 errors, 0 skips

Thanks.