From 2aec379bd563cdbd209a22ba32f2ea0a4a3eb6ca Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sun, 4 Dec 2011 20:48:44 -0200 Subject: [PATCH] Make test less strict --- test/unit/contact_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/contact_test.rb b/test/unit/contact_test.rb index e9c16dc..bdb0753 100644 --- a/test/unit/contact_test.rb +++ b/test/unit/contact_test.rb @@ -22,7 +22,7 @@ class ContactTest < ActiveSupport::TestCase should 'validates format of email only if not empty' do contact = Contact.new contact.valid? - assert_match(/^.* can't be blank$/, contact.errors[:email]) + assert_match(/can't be blank/, contact.errors[:email]) end should 'inicialize fields on instanciate' do -- libgit2 0.21.2