]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/tracepoint_test.rb
Merge remote-tracking branch 'upstream/pull/5242'
[rails.git] / test / models / tracepoint_test.rb
index 74a0d22f9fa469228f92362e28974b65bfbe49ba..3d836a2e7a4f12b4ddf9441c3da6c7f10d65bed7 100644 (file)
@@ -1,10 +1,10 @@
-require 'test_helper'
+require "test_helper"
 
 class TracepointTest < ActiveSupport::TestCase
 
 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
-  
 end
 end