@@ -32,4 +32,10 class DocumentCategoryTest < ActiveSupport::TestCase | |||||
32 | def test_option_name |
|
32 | def test_option_name | |
33 | assert_equal :enumeration_doc_categories, DocumentCategory.new.option_name |
|
33 | assert_equal :enumeration_doc_categories, DocumentCategory.new.option_name | |
34 | end |
|
34 | end | |
|
35 | ||||
|
36 | def test_default | |||
|
37 | e = Enumeration.find_by_name('Technical documentation') | |||
|
38 | e.update_attributes(:is_default => true) | |||
|
39 | assert_equal 3, DocumentCategory.default.id | |||
|
40 | end | |||
35 | end |
|
41 | end |
General Comments 0
You need to be logged in to leave comments.
Login now