diff options
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin_public_body_categories_controller_spec.rb | 6 | ||||
-rw-r--r-- | spec/controllers/admin_public_body_headings_controller_spec.rb | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/spec/controllers/admin_public_body_categories_controller_spec.rb b/spec/controllers/admin_public_body_categories_controller_spec.rb index 25bdd64ad..35454990d 100644 --- a/spec/controllers/admin_public_body_categories_controller_spec.rb +++ b/spec/controllers/admin_public_body_categories_controller_spec.rb @@ -29,7 +29,7 @@ describe AdminPublicBodyCategoriesController do PublicBodyCategory.count.should == n + 1 category = PublicBodyCategory.find_by_title("New Category") - response.should redirect_to(categories_path) + response.should redirect_to(admin_categories_path) end it "saves the public body category's heading associations" do @@ -67,7 +67,7 @@ describe AdminPublicBodyCategoriesController do category.title.should == "Mi Nuevo Category" end - response.should redirect_to(categories_path) + response.should redirect_to(admin_categories_path) end end @@ -183,7 +183,7 @@ describe AdminPublicBodyCategoriesController do pbc = PublicBodyCategory.create(:title => "Empty Category", :category_tag => "empty", :description => "-") n = PublicBodyCategory.count post :destroy, { :id => pbc.id } - response.should redirect_to(categories_path) + response.should redirect_to(admin_categories_path) PublicBodyCategory.count.should == n - 1 end end diff --git a/spec/controllers/admin_public_body_headings_controller_spec.rb b/spec/controllers/admin_public_body_headings_controller_spec.rb index 2191c916d..31517d238 100644 --- a/spec/controllers/admin_public_body_headings_controller_spec.rb +++ b/spec/controllers/admin_public_body_headings_controller_spec.rb @@ -20,7 +20,7 @@ describe AdminPublicBodyHeadingsController do PublicBodyHeading.count.should == n + 1 heading = PublicBodyHeading.find_by_name("New Heading") - response.should redirect_to(categories_path) + response.should redirect_to(admin_categories_path) end it 'creates a new public body heading with multiple locales' do @@ -43,7 +43,7 @@ describe AdminPublicBodyHeadingsController do heading.name.should == "Mi Nuevo Heading" end - response.should redirect_to(categories_path) + response.should redirect_to(admin_categories_path) end end @@ -112,14 +112,14 @@ describe AdminPublicBodyHeadingsController do :category_display_order => 0) n = PublicBodyHeading.count post :destroy, { :id => @heading.id } - response.should redirect_to(edit_heading_path(@heading)) + response.should redirect_to(edit_admin_heading_path(@heading)) PublicBodyHeading.count.should == n end it "destroys an empty public body heading" do n = PublicBodyHeading.count post :destroy, { :id => @heading.id } - response.should redirect_to(categories_path) + response.should redirect_to(admin_categories_path) PublicBodyHeading.count.should == n - 1 end end |