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