]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/tracepoint_test.rb
Merge pull request #5093 from AntonKhorev/diary-comments-shallow-paths
[rails.git] / test / models / tracepoint_test.rb
index 45dd7496f838f836bf301b082b7d1eb772f29802..3d836a2e7a4f12b4ddf9441c3da6c7f10d65bed7 100644 (file)
@@ -3,8 +3,8 @@ require "test_helper"
 class TracepointTest < ActiveSupport::TestCase
   def test_timestamp_required
     tracepoint = create(:tracepoint)
-    assert tracepoint.valid?
+    assert_predicate tracepoint, :valid?
     tracepoint.timestamp = nil
-    assert !tracepoint.valid?
+    assert_not_predicate tracepoint, :valid?
   end
 end