summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/unit/document_category_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/document_category_test.rb b/test/unit/document_category_test.rb
index 30ef1687a..03fa1b947 100644
--- a/test/unit/document_category_test.rb
+++ b/test/unit/document_category_test.rb
@@ -34,12 +34,14 @@ class DocumentCategoryTest < ActiveSupport::TestCase
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