Commit aa31827672e7cc8370b1a3014e157a7f0c858ef9

Authored by Rodrigo Souto
1 parent bd3ef039

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 1624 assert_template 'edit'
1625 1625 assert_tag :tag => 'select', :attributes => { :name => "parent_id" },
1626 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 1630 :attributes => { :selected => 'selected', :value => gallery.id.to_s }}
1628 1631 assert_no_tag :tag => 'select', :attributes => { :name => "parent_id" },
1629 1632 :descendant => { :tag => "option",
1630 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 1637 end
1632 1638  
1633 1639 protected
... ...