Commit aa31827672e7cc8370b1a3014e157a7f0c858ef9
1 parent
bd3ef039
Exists in
master
and in
28 other branches
Completing folder select test
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
test/functional/cms_controller_test.rb
@@ -1624,10 +1624,16 @@ class CmsControllerTest < ActionController::TestCase | @@ -1624,10 +1624,16 @@ class CmsControllerTest < ActionController::TestCase | ||
1624 | assert_template 'edit' | 1624 | assert_template 'edit' |
1625 | assert_tag :tag => 'select', :attributes => { :name => "parent_id" }, | 1625 | assert_tag :tag => 'select', :attributes => { :name => "parent_id" }, |
1626 | :descendant => { :tag => "option", | 1626 | :descendant => { :tag => "option", |
1627 | + :attributes => { :value => folder.id.to_s }} | ||
1628 | + assert_tag :tag => 'select', :attributes => { :name => "parent_id" }, | ||
1629 | + :descendant => { :tag => "option", | ||
1627 | :attributes => { :selected => 'selected', :value => gallery.id.to_s }} | 1630 | :attributes => { :selected => 'selected', :value => gallery.id.to_s }} |
1628 | assert_no_tag :tag => 'select', :attributes => { :name => "parent_id" }, | 1631 | assert_no_tag :tag => 'select', :attributes => { :name => "parent_id" }, |
1629 | :descendant => { :tag => "option", | 1632 | :descendant => { :tag => "option", |
1630 | :attributes => { :value => blog.id.to_s }} | 1633 | :attributes => { :value => blog.id.to_s }} |
1634 | + assert_no_tag :tag => 'select', :attributes => { :name => "parent_id" }, | ||
1635 | + :descendant => { :tag => "option", | ||
1636 | + :attributes => { :value => article.id.to_s }} | ||
1631 | end | 1637 | end |
1632 | 1638 | ||
1633 | protected | 1639 | protected |