##// END OF EJS Templates
Merged r10230 from trunk (#11665)...
Toshi MARUYAMA -
r10050:a97d6badddad
parent child
Show More
@@ -34,12 +34,14 class DocumentCategoryTest < ActiveSupport::TestCase
34 34 end
35 35
36 36 def test_default
37 assert_nil DocumentCategory.find(:first, :conditions => { :is_default => true })
37 38 e = Enumeration.find_by_name('Technical documentation')
38 39 e.update_attributes(:is_default => true)
39 40 assert_equal 3, DocumentCategory.default.id
40 41 end
41 42
42 43 def test_force_default
44 assert_nil DocumentCategory.find(:first, :conditions => { :is_default => true })
43 45 assert_equal 1, DocumentCategory.default.id
44 46 end
45 47 end
General Comments 0
You need to be logged in to leave comments. Login now