Commit c11e38e9cdcae063057b99151790bdd21cc81fd0
1 parent
3b4a8414
Exists in
master
and in
28 other branches
ActionItem243: fixed a test that used :path instead of :category_path
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1595 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
test/functional/category_controller_test.rb
| @@ -14,12 +14,12 @@ class CategoryControllerTest < Test::Unit::TestCase | @@ -14,12 +14,12 @@ class CategoryControllerTest < Test::Unit::TestCase | ||
| 14 | end | 14 | end |
| 15 | 15 | ||
| 16 | def test_should_display_a_given_category | 16 | def test_should_display_a_given_category |
| 17 | - get :view, :path => [ 'my-category' ] | 17 | + get :view, :category_path => [ 'my-category' ] |
| 18 | assert_equal @category, assigns(:category) | 18 | assert_equal @category, assigns(:category) |
| 19 | end | 19 | end |
| 20 | 20 | ||
| 21 | should 'expose category in a method' do | 21 | should 'expose category in a method' do |
| 22 | - get :view, :path => [ 'my-category' ] | 22 | + get :view, :category_path => [ 'my-category' ] |
| 23 | assert_same assigns(:category), @controller.category | 23 | assert_same assigns(:category), @controller.category |
| 24 | end | 24 | end |
| 25 | 25 | ||
| @@ -28,7 +28,7 @@ class CategoryControllerTest < Test::Unit::TestCase | @@ -28,7 +28,7 @@ class CategoryControllerTest < Test::Unit::TestCase | ||
| 28 | recent = [] | 28 | recent = [] |
| 29 | @category.expects(:recent_articles).returns(recent) | 29 | @category.expects(:recent_articles).returns(recent) |
| 30 | 30 | ||
| 31 | - get :view, :path => [ 'my-category' ] | 31 | + get :view, :category_path => [ 'my-category' ] |
| 32 | assert_same recent, assigns(:recent_articles) | 32 | assert_same recent, assigns(:recent_articles) |
| 33 | end | 33 | end |
| 34 | 34 | ||
| @@ -37,7 +37,7 @@ class CategoryControllerTest < Test::Unit::TestCase | @@ -37,7 +37,7 @@ class CategoryControllerTest < Test::Unit::TestCase | ||
| 37 | recent = [] | 37 | recent = [] |
| 38 | @category.expects(:recent_comments).returns(recent) | 38 | @category.expects(:recent_comments).returns(recent) |
| 39 | 39 | ||
| 40 | - get :view, :path => [ 'my-category' ] | 40 | + get :view, :category_path => [ 'my-category' ] |
| 41 | assert_same recent, assigns(:recent_comments) | 41 | assert_same recent, assigns(:recent_comments) |
| 42 | end | 42 | end |
| 43 | 43 | ||
| @@ -46,7 +46,7 @@ class CategoryControllerTest < Test::Unit::TestCase | @@ -46,7 +46,7 @@ class CategoryControllerTest < Test::Unit::TestCase | ||
| 46 | most_commented = [] | 46 | most_commented = [] |
| 47 | @category.expects(:most_commented_articles).returns(most_commented) | 47 | @category.expects(:most_commented_articles).returns(most_commented) |
| 48 | 48 | ||
| 49 | - get :view, :path => [ 'my-category' ] | 49 | + get :view, :category_path => [ 'my-category' ] |
| 50 | assert_same most_commented, assigns(:most_commented_articles) | 50 | assert_same most_commented, assigns(:most_commented_articles) |
| 51 | end | 51 | end |
| 52 | 52 |