]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/tracepoint_test.rb
Merge remote-tracking branch 'upstream/pull/3523'
[rails.git] / test / models / tracepoint_test.rb
index 0dedb713a84bc44e701fda47a25644f55865aeac..115b8ec9b21935421a44ff6321970e35c7fa59d0 100644 (file)
@@ -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