Commit 4b2d2fee3f728a5eaf8fb191395f866a102e98e7
1 parent
039c678d
Exists in
master
and in
22 other branches
ActionItem8: making unit tests pass
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@22 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
test/unit/domain_test.rb
| ... | ... | @@ -7,15 +7,15 @@ class DomainTest < Test::Unit::TestCase |
| 7 | 7 | def test_domain_name_format |
| 8 | 8 | c = Domain.new |
| 9 | 9 | c.valid? |
| 10 | - assert c.errors.invalid?(:domain) | |
| 10 | + assert c.errors.invalid?(:name) | |
| 11 | 11 | |
| 12 | - c.domain = 'bliblibli' | |
| 12 | + c.name = 'bliblibli' | |
| 13 | 13 | c.valid? |
| 14 | - assert c.errors.invalid?(:domain) | |
| 14 | + assert c.errors.invalid?(:name) | |
| 15 | 15 | |
| 16 | - c.domain = 'test.net' | |
| 16 | + c.name = 'test.net' | |
| 17 | 17 | c.valid? |
| 18 | - assert ! c.errors.invalid?(:domain) | |
| 18 | + assert ! c.errors.invalid?(:name) | |
| 19 | 19 | end |
| 20 | 20 | |
| 21 | 21 | def test_owner | ... | ... |