diff --git a/test/unit/document_category_test.rb b/test/unit/document_category_test.rb index 4d677628c..452ab1aa0 100644 --- a/test/unit/document_category_test.rb +++ b/test/unit/document_category_test.rb @@ -32,4 +32,10 @@ class DocumentCategoryTest < ActiveSupport::TestCase def test_option_name assert_equal :enumeration_doc_categories, DocumentCategory.new.option_name end + + def test_default + e = Enumeration.find_by_name('Technical documentation') + e.update_attributes(:is_default => true) + assert_equal 3, DocumentCategory.default.id + end end