From aa31827672e7cc8370b1a3014e157a7f0c858ef9 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 3 Apr 2013 22:05:25 -0300 Subject: [PATCH] Completing folder select test --- test/functional/cms_controller_test.rb | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) 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