git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10230
e93f8b46-1217-0410-a6f0-
8f06a7374b81
end
def test_default
+ assert_nil DocumentCategory.find(:first, :conditions => { :is_default => true })
e = Enumeration.find_by_name('Technical documentation')
e.update_attributes(:is_default => true)
assert_equal 3, DocumentCategory.default.id
end
def test_force_default
+ assert_nil DocumentCategory.find(:first, :conditions => { :is_default => true })
assert_equal 1, DocumentCategory.default.id
end
end