X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f8a68371ad34594cce4aadf5fef229588fd4ddc..44a9a65aa74cd927bfa3abd3b53569500842b489:/test/unit/message_test.rb?ds=sidebyside diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb index a732aa586..58523ca88 100644 --- a/test/unit/message_test.rb +++ b/test/unit/message_test.rb @@ -1,6 +1,6 @@ require File.dirname(__FILE__) + '/../test_helper' -class MessageTest < Test::Unit::TestCase +class MessageTest < ActiveSupport::TestCase api_fixtures fixtures :messages @@ -15,9 +15,9 @@ class MessageTest < Test::Unit::TestCase def test_check_empty_message_fails message = Message.new assert !message.valid? - assert message.errors.invalid?(:title) - assert message.errors.invalid?(:body) - assert message.errors.invalid?(:sent_on) + assert message.errors[:title].any? + assert message.errors[:body].any? + assert message.errors[:sent_on].any? assert true, message.message_read end