diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index 1ee5489..f0f76c4 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -1624,10 +1624,16 @@ class CmsControllerTest < ActionController::TestCase assert_template 'edit' assert_tag :tag => 'select', :attributes => { :name => "parent_id" }, :descendant => { :tag => "option", + :attributes => { :value => folder.id.to_s }} + assert_tag :tag => 'select', :attributes => { :name => "parent_id" }, + :descendant => { :tag => "option", :attributes => { :selected => 'selected', :value => gallery.id.to_s }} assert_no_tag :tag => 'select', :attributes => { :name => "parent_id" }, :descendant => { :tag => "option", :attributes => { :value => blog.id.to_s }} + assert_no_tag :tag => 'select', :attributes => { :name => "parent_id" }, + :descendant => { :tag => "option", + :attributes => { :value => article.id.to_s }} end protected -- libgit2 0.21.2