Commit 2aec379bd563cdbd209a22ba32f2ea0a4a3eb6ca

Authored by Antonio Terceiro
1 parent 4ae30ce7

Make test less strict

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/contact_test.rb
... ... @@ -22,7 +22,7 @@ class ContactTest < ActiveSupport::TestCase
22 22 should 'validates format of email only if not empty' do
23 23 contact = Contact.new
24 24 contact.valid?
25   - assert_match(/^.* can't be blank$/, contact.errors[:email])
  25 + assert_match(/can't be blank/, contact.errors[:email])
26 26 end
27 27  
28 28 should 'inicialize fields on instanciate' do
... ...