X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d0ec5d143726daf3f98b0ca8d4f5aab24c897023..06d03c8acccfadfe7e2bf441c9fbd0044e7a2fcf:/test/models/message_test.rb?ds=sidebyside diff --git a/test/models/message_test.rb b/test/models/message_test.rb index 83cc1251d..1bc15cba3 100644 --- a/test/models/message_test.rb +++ b/test/models/message_test.rb @@ -5,7 +5,7 @@ class MessageTest < ActiveSupport::TestCase def test_check_empty_message_fails message = build(:message, :title => nil, :body => nil, :sent_on => nil) - assert_not message.valid? + assert_not_predicate message, :valid? assert_predicate message.errors[:title], :any? assert_predicate message.errors[:body], :any? assert_predicate message.errors[:sent_on], :any? @@ -23,7 +23,7 @@ class MessageTest < ActiveSupport::TestCase message = create(:message, :unread) message.sender = nil message.recipient = nil - assert_not message.valid? + assert_not_predicate message, :valid? assert_raise(ActiveRecord::RecordNotFound) { User.find(0) } message.from_user_id = 0