Commit 1420310b6a025dd3c6a370b30ffb75801084dc2b
1 parent
00b6eed0
Exists in
master
and in
29 other branches
Fix 1 unit test from Contact model
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
HACKING.rails235
| @@ -6,7 +6,7 @@ Install dependencies: | @@ -6,7 +6,7 @@ Install dependencies: | ||
| 6 | gem install rails -v 2.3.5 | 6 | gem install rails -v 2.3.5 |
| 7 | gem install ferret | 7 | gem install ferret |
| 8 | gem install i18n | 8 | gem install i18n |
| 9 | -gem install will_paginate | 9 | +gem install will_paginate -v 2.3.12 |
| 10 | gem install cucumber | 10 | gem install cucumber |
| 11 | 11 | ||
| 12 | Creating initial environment: | 12 | Creating initial environment: |
test/unit/contact_test.rb
| @@ -22,7 +22,7 @@ class ContactTest < ActiveSupport::TestCase | @@ -22,7 +22,7 @@ class ContactTest < ActiveSupport::TestCase | ||
| 22 | should 'validates format of email only if not empty' do | 22 | should 'validates format of email only if not empty' do |
| 23 | contact = Contact.new | 23 | contact = Contact.new |
| 24 | contact.valid? | 24 | contact.valid? |
| 25 | - assert_match /^.* can't be blank$/, contact.errors[:email] | 25 | + assert_match /^can't be blank$/, contact.errors[:email] |
| 26 | end | 26 | end |
| 27 | 27 | ||
| 28 | should 'inicialize fields on instanciate' do | 28 | should 'inicialize fields on instanciate' do |