X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15689af6bfa6220b9c539eb0717a3d75cc3c4799..c12f8959dd2059b4ea9d45caf716923d7589cbb0:/test/models/tracepoint_test.rb diff --git a/test/models/tracepoint_test.rb b/test/models/tracepoint_test.rb index 45dd7496f..115b8ec9b 100644 --- a/test/models/tracepoint_test.rb +++ b/test/models/tracepoint_test.rb @@ -3,8 +3,8 @@ require "test_helper" class TracepointTest < ActiveSupport::TestCase def test_timestamp_required tracepoint = create(:tracepoint) - assert tracepoint.valid? + assert_predicate tracepoint, :valid? tracepoint.timestamp = nil - assert !tracepoint.valid? + assert_not tracepoint.valid? end end