X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/34e3e51456774127d43408b7ab65c24f41373f62..27c3edae25e2ee2a3ef0ee0a354447694eef93c6:/test/models/tracepoint_test.rb?ds=sidebyside diff --git a/test/models/tracepoint_test.rb b/test/models/tracepoint_test.rb index 7e2d449d0..45dd7496f 100644 --- a/test/models/tracepoint_test.rb +++ b/test/models/tracepoint_test.rb @@ -1,10 +1,10 @@ -require 'test_helper' +require "test_helper" class TracepointTest < ActiveSupport::TestCase - api_fixtures - - def test_tracepoint_count - assert_equal 4, Tracepoint.count + def test_timestamp_required + tracepoint = create(:tracepoint) + assert tracepoint.valid? + tracepoint.timestamp = nil + assert !tracepoint.valid? end - end