bad.each do |event|
note_comment = create(:note_comment)
note_comment.event = event
- assert_not note_comment.valid?, "#{event} is valid when it shouldn't be"
+ assert_not_predicate note_comment, :valid?, "#{event} is valid when it shouldn't be"
end
end
bad.each do |body|
note_comment = create(:note_comment)
note_comment.body = body
- assert_not note_comment.valid?, "#{body} is valid when it shouldn't be"
+ assert_not_predicate note_comment, :valid?, "#{body} is valid when it shouldn't be"
end
end
end