Skip to content

Commit

Permalink
Rename some tests for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaylorgds committed Oct 4, 2024
1 parent c04df0e commit be6812c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/editions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit be6812c

Please sign in to comment.