spec/cucumber/messages/time_conversion_spec.rb in cucumber-messages-17.0.0 vs spec/cucumber/messages/time_conversion_spec.rb in cucumber-messages-17.0.1

- old
+ new

@@ -26,8 +26,16 @@ duration = seconds_to_duration(duration_in_seconds) duration_in_seconds_again = duration_to_seconds(duration) expect(duration_in_seconds_again).to be_within(0.000000001).of(duration_in_seconds) end + + it 'converts to a hash where seconds and nanos are integers' do + duration_in_seconds = 3.000161 + duration = seconds_to_duration(duration_in_seconds) + + expect(duration['seconds']).to be_integer + expect(duration['nanos']).to be_integer + end end end end