Commit 5468297c1a6ccf8e039ef1b74b9fcb0e29049f9d

Authored by AntonioTerceiro
1 parent 6bfe1576

ActionItem392: fixing test



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1980 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/functional/application_controller_test.rb
@@ -128,8 +128,8 @@ class ApplicationControllerTest < Test::Unit::TestCase @@ -128,8 +128,8 @@ class ApplicationControllerTest < Test::Unit::TestCase
128 end 128 end
129 129
130 should 'display only some categories in menu' do 130 should 'display only some categories in menu' do
131 - c1 = Environment.default.categories.create!(:name => 'Category 1', :display_color => 1, :parent_id => nil, :display_in_menu => true )  
132 - c2 = Environment.default.categories.create!(:name => 'Category 2', :display_color => nil, :parent_id => c1, :display_in_menu => true ) 131 + c1 = Environment.default.categories.create!(:name => 'Category 1', :display_color => 1, :parent => nil, :display_in_menu => true )
  132 + c2 = Environment.default.categories.create!(:name => 'Category 2', :display_color => nil, :parent => c1, :display_in_menu => true )
133 get :index 133 get :index
134 assert_tag :tag => 'a', :content => /Category 2/ 134 assert_tag :tag => 'a', :content => /Category 2/
135 end 135 end