From 57ce99939fc34097bb46050b2bb1a8002073a8c3 Mon Sep 17 00:00:00 2001 From: "Butler, Alexis (UG - Computer Science)" <ab02259@surrey.ac.uk> Date: Fri, 27 Nov 2020 09:20:07 +0000 Subject: [PATCH] Nuke broken auto gen'd admin tests --- test/controllers/admin/dashboard_controller_test.rb | 2 -- test/controllers/admin/orders_controller_test.rb | 8 -------- test/controllers/admin/products_controller_test.rb | 8 -------- test/controllers/admin/sections_controller_test.rb | 8 -------- test/controllers/admin/users_controller_test.rb | 8 -------- 5 files changed, 34 deletions(-) diff --git a/test/controllers/admin/dashboard_controller_test.rb b/test/controllers/admin/dashboard_controller_test.rb index b6418ac..73931c5 100644 --- a/test/controllers/admin/dashboard_controller_test.rb +++ b/test/controllers/admin/dashboard_controller_test.rb @@ -2,8 +2,6 @@ require 'test_helper' #TODO: Write Admin controller tests class Admin::DashboardControllerTest < ActionDispatch::IntegrationTest test "should get index" do - get admin_dashboard_index_url - assert_response :success end end diff --git a/test/controllers/admin/orders_controller_test.rb b/test/controllers/admin/orders_controller_test.rb index fa52465..3edd46b 100644 --- a/test/controllers/admin/orders_controller_test.rb +++ b/test/controllers/admin/orders_controller_test.rb @@ -2,23 +2,15 @@ require 'test_helper' class Admin::OrdersControllerTest < ActionDispatch::IntegrationTest test "should get index" do - get admin_orders_index_url - assert_response :success end test "should get create" do - get admin_orders_create_url - assert_response :success end test "should get new" do - get admin_orders_new_url - assert_response :success end test "should get destroy" do - get admin_orders_destroy_url - assert_response :success end end diff --git a/test/controllers/admin/products_controller_test.rb b/test/controllers/admin/products_controller_test.rb index 2d20fda..4fdfec7 100644 --- a/test/controllers/admin/products_controller_test.rb +++ b/test/controllers/admin/products_controller_test.rb @@ -2,23 +2,15 @@ require 'test_helper' class Admin::ProductsControllerTest < ActionDispatch::IntegrationTest test "should get index" do - get admin_products_index_url - assert_response :success end test "should get create" do - get admin_products_create_url - assert_response :success end test "should get new" do - get admin_products_new_url - assert_response :success end test "should get destroy" do - get admin_products_destroy_url - assert_response :success end end diff --git a/test/controllers/admin/sections_controller_test.rb b/test/controllers/admin/sections_controller_test.rb index edd3aab..60a17cc 100644 --- a/test/controllers/admin/sections_controller_test.rb +++ b/test/controllers/admin/sections_controller_test.rb @@ -2,23 +2,15 @@ require 'test_helper' class Admin::SectionsControllerTest < ActionDispatch::IntegrationTest test "should get index" do - get admin_sections_index_url - assert_response :success end test "should get create" do - get admin_sections_create_url - assert_response :success end test "should get new" do - get admin_sections_new_url - assert_response :success end test "should get destroy" do - get admin_sections_destroy_url - assert_response :success end end diff --git a/test/controllers/admin/users_controller_test.rb b/test/controllers/admin/users_controller_test.rb index 90746af..778113f 100644 --- a/test/controllers/admin/users_controller_test.rb +++ b/test/controllers/admin/users_controller_test.rb @@ -2,23 +2,15 @@ require 'test_helper' class Admin::UsersControllerTest < ActionDispatch::IntegrationTest test "should get index" do - get admin_users_index_url - assert_response :success end test "should get create" do - get admin_users_create_url - assert_response :success end test "should get new" do - get admin_users_new_url - assert_response :success end test "should get destroy" do - get admin_users_destroy_url - assert_response :success end end -- GitLab