From 6fd3505127adcdba9b4c13a76d12ccc093b58c09 Mon Sep 17 00:00:00 2001 From: Mark Taylor <138604938+mtaylorgds@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:45:59 +0100 Subject: [PATCH] Rename some tests for readability --- test/functional/editions_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/editions_controller_test.rb b/test/functional/editions_controller_test.rb index 1d3668a4d..202204e25 100644 --- a/test/functional/editions_controller_test.rb +++ b/test/functional/editions_controller_test.rb @@ -17,7 +17,7 @@ class EditionsControllerTest < ActionController::TestCase end context "#index" do - should "editions index redirects to root" do + should "redirect to root" do get :index assert_response :redirect assert_redirected_to root_path @@ -36,12 +36,12 @@ class EditionsControllerTest < ActionController::TestCase @guide = GuideEdition.create!(title: "test", slug: "test2", panopticon_id: artefact.id) end - should "requesting a publication that doesn't exist returns a 404" do + should "return a 404 when requesting a publication that doesn't exist" do get :show, params: { id: "4e663834e2ba80480a0000e6" } assert_response :not_found end - should "we can view a guide" do + should "return a view for the requested guide" do get :show, params: { id: @guide.id } assert_response :success assert_not_nil assigns(:resource)