Commit 1a7393de3273e719b095ad304770f3d9cfbc500a
1 parent
13632465
Exists in
master
and in
22 other branches
ActionItem392: fixing tests
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1861 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
test/integration/assets_menu_test.rb
... | ... | @@ -9,7 +9,7 @@ class AssetsMenuTest < ActionController::IntegrationTest |
9 | 9 | |
10 | 10 | should 'link to uncategorized assets at site root' do |
11 | 11 | get '/' |
12 | - assert_tag :tag => 'a', :attributes => { :href => '/cat/parent-category/category-a' } | |
12 | + assert_tag :tag => 'a', :attributes => { :href => '/assets/articles' } | |
13 | 13 | end |
14 | 14 | |
15 | 15 | should 'link to assets inside category root' do | ... | ... |
test/integration/categories_menu_test.rb
... | ... | @@ -6,6 +6,9 @@ class CategoriesMenuTest < ActionController::IntegrationTest |
6 | 6 | Category.delete_all |
7 | 7 | @cat1 = Category.create!(:name => 'Food', :environment => Environment.default, :display_color => 1) |
8 | 8 | @cat2 = Category.create!(:name => 'Vegetables', :environment => Environment.default, :parent => @cat1) |
9 | + | |
10 | + # all categories must be shown for these tests | |
11 | + Category.any_instance.stubs(:display_in_menu?).returns(true) | |
9 | 12 | end |
10 | 13 | |
11 | 14 | should 'display link to categories' do | ... | ... |