Commit 20541556ff7ab25d2227608a15ade46817b37020

Authored by Antonio Terceiro
1 parent f19c51e3

ActionItem791: fixing failing test

Without changing its semantics!
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_equal "Email 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
... ...