X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/10d65cc8571d38bb6af6d9022edb98a294ad2f2d..fe96c0a524c9ce092eed8e8ac14e6f9309e778cc:/test/models/message_test.rb 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