Commit 5468297c1a6ccf8e039ef1b74b9fcb0e29049f9d
1 parent
6bfe1576
Exists in
master
and in
29 other branches
ActionItem392: fixing test
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1980 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/functional/application_controller_test.rb
... | ... | @@ -128,8 +128,8 @@ class ApplicationControllerTest < Test::Unit::TestCase |
128 | 128 | end |
129 | 129 | |
130 | 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 | 133 | get :index |
134 | 134 | assert_tag :tag => 'a', :content => /Category 2/ |
135 | 135 | end | ... | ... |