]> source.dussan.org Git - redmine.git/commit
Change Role#anonymous and #non_member so they generate the record as needed.
authorEric Davis <edavis@littlestreamsoftware.com>
Wed, 3 Feb 2010 17:47:47 +0000 (17:47 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Wed, 3 Feb 2010 17:47:47 +0000 (17:47 +0000)
commit155083ec9722e2c01ec3323d7a421fa059a80ba9
tree43c285de14fadd2ed21d892fa4b0d26427c7bd7a
parentb86b9b898e4dd5c0d9eb2d7362c47a6a513b2015
Change Role#anonymous and #non_member so they generate the record as needed.

While creating tests, it was a common occurrence to lost the builtin roles
because they are only created in the migrations.  This makes them behave like
User#anonymous.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3363 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/models/role.rb
test/unit/role_test.rb