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