]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/tracepoint_test.rb
Merge remote-tracking branch 'upstream/pull/3300'
[rails.git] / test / models / tracepoint_test.rb
index 7e2d449d0880278f7892f5b045731710e08734a9..2ffbef09fae8f7c5d7de527c2fcb889dc3615e63 100644 (file)
@@ -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