<%= link_to("Theses submitted by students", report_student_submitted_theses_path) %>
+
<%= link_to("Thesis information by term", report_term_path) %>
+
-
-
diff --git a/test/controllers/report_controller_test.rb b/test/controllers/report_controller_test.rb
index bf639be9..1f652adc 100644
--- a/test/controllers/report_controller_test.rb
+++ b/test/controllers/report_controller_test.rb
@@ -49,20 +49,20 @@ def create_thesis_with_whodunnit(user)
end
# ~~~~~~~~~~~~~~~~~~~~ Report dashboard ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test 'summary report exists' do
+ test 'report dashboard exists' do
sign_in users(:admin)
get report_index_path
assert_response :success
end
- test 'anonymous users are prompted to log in by summary report' do
+ test 'anonymous users are prompted to log in by report dashboard' do
# Note that nobody is signed in.
get report_index_path
assert_response :redirect
assert_redirected_to '/login'
end
- test 'basic users cannot see summary report' do
+ test 'basic users cannot see report dashboard' do
sign_in users(:basic)
get report_index_path
assert_redirected_to '/'
@@ -70,7 +70,7 @@ def create_thesis_with_whodunnit(user)
assert_select 'div.alert', text: 'Not authorized.', count: 1
end
- test 'submitters cannot see summary report' do
+ test 'submitters cannot see report dashboard' do
sign_in users(:transfer_submitter)
get report_index_path
assert_redirected_to '/'
@@ -78,32 +78,24 @@ def create_thesis_with_whodunnit(user)
assert_select 'div.alert', text: 'Not authorized.', count: 1
end
- test 'processors can see summary report' do
+ test 'processors can see report dashboard' do
sign_in users(:processor)
get report_index_path
assert_response :success
end
- test 'thesis_admins can see summary report' do
+ test 'thesis_admins can see report dashboard' do
sign_in users(:thesis_admin)
get report_index_path
assert_response :success
end
- test 'admins can see summary report' do
+ test 'admins can see report dashboard' do
sign_in users(:admin)
get report_index_path
assert_response :success
end
- # ~~~~ Dashboard features
-
- test 'summary report has links to term-specific pages for all terms' do
- sign_in users(:processor)
- get report_index_path
- assert_select 'table:first-of-type thead a', count: Thesis.pluck(:grad_date).uniq.count
- end
-
# ~~~~~~~~~~~~~~~~~~~~ Report empty theses ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test 'empty theses report exists' do
sign_in users(:admin)