Skip to content

Commit

Permalink
fix to use fixed(correct) number for assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Oct 25, 2016
1 parent e44dbab commit c0b5e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin/test_parser_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def test_parse_float_time(data)
parser.configure('json_parser' => data)
text = "100.1"
parser.instance.parse("{\"time\":\"#{text}\"}") do |time, record|
assert_equal Time.at(text.to_f).to_i, time.sec
assert_equal Time.at(text.to_f).nsec, time.nsec
assert_equal 100, time.sec
assert_equal 100_000_000, time.nsec
end
end

Expand Down

0 comments on commit c0b5e6e

Please sign in to comment.