Patch by Go MAEDA (user:maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22976
e93f8b46-1217-0410-a6f0-
8f06a7374b81
nil
end
+ def active?
+ self.status == STATUS_ACTIVE
+ end
+
def visible?(user=User.current)
Principal.visible(user).find_by(:id => id) == self
end
end
end
- def active?
- self.status == STATUS_ACTIVE
- end
-
def registered?
self.status == STATUS_REGISTERED
end
assert g.save
g.reload
assert_equal 'New group', g.name
+ assert_equal true, g.active?
end
def test_name_should_accept_255_characters