X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f2d13c075660efb9582d7fb600bd6798d7a382ca..a8e8ba1a64d4f82c74003b5fc05c6fc89a10cc65:/test/models/tracepoint_test.rb diff --git a/test/models/tracepoint_test.rb b/test/models/tracepoint_test.rb index 74a0d22f9..2ffbef09f 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_not tracepoint.valid? end - end