Commit 1bfe3c11c5f35fac772492254b2cb0abf5fd4e78

Authored by AntonioTerceiro
1 parent 50267ca4

ActionItem392: adding new reserved identifiers


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2025 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/models/profile.rb
... ... @@ -76,6 +76,8 @@ class Profile < ActiveRecord::Base
76 76 environment
77 77 webmaster
78 78 info
  79 + root
  80 + assets
79 81 ]
80 82  
81 83 belongs_to :user
... ...
test/unit/profile_test.rb
... ... @@ -126,6 +126,8 @@ class ProfileTest < Test::Unit::TestCase
126 126 assert_invalid_identifier 'cat'
127 127 assert_invalid_identifier 'webmaster'
128 128 assert_invalid_identifier 'info'
  129 + assert_invalid_identifier 'root'
  130 + assert_invalid_identifier 'assets'
129 131 end
130 132  
131 133 should 'provide recent documents' do
... ...