X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b095b59d5e0ee805e49980af80b21bd1acff1345..e7fb89c8d016d01accb8714c138ba1ff89e5dce8:/test/models/tracepoint_test.rb?ds=sidebyside diff --git a/test/models/tracepoint_test.rb b/test/models/tracepoint_test.rb index 74a0d22f9..3d836a2e7 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_predicate tracepoint, :valid? + tracepoint.timestamp = nil + assert_not_predicate tracepoint, :valid? end - end