From a7d5152df4421c24a41c911f861812c5bc4e2185 Mon Sep 17 00:00:00 2001 From: "Butler, Alexis (UG - Computer Science)" <ab02259@surrey.ac.uk> Date: Sat, 28 Nov 2020 13:39:49 +0000 Subject: [PATCH] updated todo's and planned dash tests --- test/controllers/admin/dashboard_controller_test.rb | 9 +++++++-- test/controllers/admin/orders_controller_test.rb | 2 +- test/controllers/admin/products_controller_test.rb | 2 +- test/controllers/admin/sections_controller_test.rb | 2 +- test/controllers/admin/users_controller_test.rb | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/test/controllers/admin/dashboard_controller_test.rb b/test/controllers/admin/dashboard_controller_test.rb index 73931c5..f92ebc1 100644 --- a/test/controllers/admin/dashboard_controller_test.rb +++ b/test/controllers/admin/dashboard_controller_test.rb @@ -1,7 +1,12 @@ require 'test_helper' -#TODO: Write Admin controller tests class Admin::DashboardControllerTest < ActionDispatch::IntegrationTest - test "should get index" do + test 'should get dashboard if logged in and admin' do + end + test 'should not get dashboard if logged in but not admin' do + + end + test 'should not get dashboard if not logged in' do + end end diff --git a/test/controllers/admin/orders_controller_test.rb b/test/controllers/admin/orders_controller_test.rb index 3edd46b..227a6e1 100644 --- a/test/controllers/admin/orders_controller_test.rb +++ b/test/controllers/admin/orders_controller_test.rb @@ -1,5 +1,5 @@ require 'test_helper' - +#TODO: write order admin tests class Admin::OrdersControllerTest < ActionDispatch::IntegrationTest test "should get index" do end diff --git a/test/controllers/admin/products_controller_test.rb b/test/controllers/admin/products_controller_test.rb index 4fdfec7..d21c142 100644 --- a/test/controllers/admin/products_controller_test.rb +++ b/test/controllers/admin/products_controller_test.rb @@ -1,5 +1,5 @@ require 'test_helper' - +#TODO: write product admin tests class Admin::ProductsControllerTest < ActionDispatch::IntegrationTest test "should get index" do end diff --git a/test/controllers/admin/sections_controller_test.rb b/test/controllers/admin/sections_controller_test.rb index 60a17cc..b0ec247 100644 --- a/test/controllers/admin/sections_controller_test.rb +++ b/test/controllers/admin/sections_controller_test.rb @@ -1,5 +1,5 @@ require 'test_helper' - +#TODO: write section admin tests class Admin::SectionsControllerTest < ActionDispatch::IntegrationTest test "should get index" do end diff --git a/test/controllers/admin/users_controller_test.rb b/test/controllers/admin/users_controller_test.rb index 778113f..391d15a 100644 --- a/test/controllers/admin/users_controller_test.rb +++ b/test/controllers/admin/users_controller_test.rb @@ -1,5 +1,5 @@ require 'test_helper' - +#TODO: write user admin tests class Admin::UsersControllerTest < ActionDispatch::IntegrationTest test "should get index" do end -- GitLab