Commit d7aa1364667c3cddbed450d644764d7fdec1b829
1 parent
0ab87591
Exists in
master
and in
29 other branches
ActionItem8: we allow numbers in the end of the profile name
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@24 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
test/unit/profile_test.rb
@@ -16,6 +16,10 @@ class ProfileTest < Test::Unit::TestCase | @@ -16,6 +16,10 @@ class ProfileTest < Test::Unit::TestCase | ||
16 | p.valid? | 16 | p.valid? |
17 | assert p.errors.invalid?(:identifier) | 17 | assert p.errors.invalid?(:identifier) |
18 | 18 | ||
19 | + p.identifier = 'rightformat2007' | ||
20 | + p.valid? | ||
21 | + assert ! p.errors.invalid?(:identifier) | ||
22 | + | ||
19 | p.identifier = 'rightformat' | 23 | p.identifier = 'rightformat' |
20 | p.valid? | 24 | p.valid? |
21 | assert ! p.errors.invalid?(:identifier) | 25 | assert ! p.errors.invalid?(:identifier) |