X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..5d1bc7a4fa3f21db35ca95292ec9a383476c3843:/test/models/tracepoint_test.rb diff --git a/test/models/tracepoint_test.rb b/test/models/tracepoint_test.rb index e24a833cf..115b8ec9b 100644 --- a/test/models/tracepoint_test.rb +++ b/test/models/tracepoint_test.rb @@ -1,9 +1,10 @@ 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_predicate tracepoint, :valid? + tracepoint.timestamp = nil + assert_not tracepoint.valid? end end