Commit c973762c78fcbd61b21d6c4aac94d0e26cd2e4ac

Authored by Antonio Terceiro
Committed by Daniela Feitosa
1 parent 064f925b

Don't allow profiles named 'plugin'

app/models/profile.rb
... ... @@ -152,6 +152,7 @@ class Profile < ActiveRecord::Base
152 152 assets
153 153 doc
154 154 chat
  155 + plugin
155 156 ]
156 157  
157 158 belongs_to :user
... ...
test/unit/profile_test.rb
... ... @@ -131,6 +131,7 @@ class ProfileTest < Test::Unit::TestCase
131 131 assert_invalid_identifier 'info'
132 132 assert_invalid_identifier 'root'
133 133 assert_invalid_identifier 'assets'
  134 + assert_invalid_identifier 'plugin'
134 135 end
135 136  
136 137 should 'provide recent documents' do
... ...