Commit 5ad505de2608c380b5df8b36a404be31dbd14d6d

Authored by AntonioTerceiro
1 parent 4a9411f1

ActionItem237: adding new reserved identifiers


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1579 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/models/profile.rb
@@ -52,6 +52,8 @@ class Profile < ActiveRecord::Base @@ -52,6 +52,8 @@ class Profile < ActiveRecord::Base
52 cat 52 cat
53 tag 53 tag
54 environment 54 environment
  55 + webmaster
  56 + info
55 ] 57 ]
56 58
57 belongs_to :user 59 belongs_to :user
test/unit/profile_test.rb
@@ -128,6 +128,8 @@ class ProfileTest < Test::Unit::TestCase @@ -128,6 +128,8 @@ class ProfileTest < Test::Unit::TestCase
128 assert_invalid_identifier 'test' 128 assert_invalid_identifier 'test'
129 assert_invalid_identifier 'tag' 129 assert_invalid_identifier 'tag'
130 assert_invalid_identifier 'cat' 130 assert_invalid_identifier 'cat'
  131 + assert_invalid_identifier 'webmaster'
  132 + assert_invalid_identifier 'info'
131 end 133 end
132 134
133 should 'provide recent documents' do 135 should 'provide recent documents' do