X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/88cf03ff005474de5eaf0285c92a24017fe341cf..0100cfe304954c42305b58e7857fb9de81808267:/test/models/message_test.rb diff --git a/test/models/message_test.rb b/test/models/message_test.rb index d5391c6f8..3a25c1a4b 100644 --- a/test/models/message_test.rb +++ b/test/models/message_test.rb @@ -4,7 +4,7 @@ class MessageTest < ActiveSupport::TestCase EURO = "\xe2\x82\xac".freeze # euro symbol def test_check_empty_message_fails - message = Message.new + message = build(:message, :title => nil, :body => nil, :sent_on => nil) assert_not message.valid? assert message.errors[:title].any? assert message.errors[:body].any?