Skip to content

Commit

Permalink
Merge pull request #2177 from alphagov/dependabot/bundler/rubocop-gov…
Browse files Browse the repository at this point in the history
…uk-4.17.1

Bump rubocop-govuk from 4.17.0 to 4.17.1
  • Loading branch information
anatron committed May 21, 2024
2 parents 4e9869b + 33a651f commit 3a255ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,13 @@ GEM
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-govuk (4.17.0)
rubocop-govuk (4.17.1)
rubocop (= 1.63.5)
rubocop-ast (= 1.31.3)
rubocop-rails (= 2.24.1)
rubocop-rails (= 2.25.0)
rubocop-rake (= 0.6.0)
rubocop-rspec (= 2.29.2)
rubocop-rails (2.24.1)
rubocop-rails (2.25.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
Expand Down
12 changes: 6 additions & 6 deletions test/functional/editions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class EditionsControllerTest < ActionController::TestCase

should "delegate complexity of duplication to appropriate collaborator" do
post :duplicate, params: { id: @guide.id }
assert_response 302
assert_response :found
assert_equal "New edition created", flash[:success]
end

Expand All @@ -115,7 +115,7 @@ class EditionsControllerTest < ActionController::TestCase

post :duplicate, params: { id: edition.id }

assert_response 302
assert_response :found
assert_redirected_to edition_path(artefact.latest_edition)
assert_not_equal edition, artefact.latest_edition
assert_equal "New edition created", flash[:success]
Expand All @@ -127,7 +127,7 @@ class EditionsControllerTest < ActionController::TestCase

post :duplicate, params: { id: edition.id }

assert_response 302
assert_response :found
assert_redirected_to edition_path(edition)
assert_equal edition, artefact.latest_edition
assert_equal "You do not have correct editor permissions for this action.", flash[:danger]
Expand Down Expand Up @@ -349,7 +349,7 @@ class EditionsControllerTest < ActionController::TestCase
id: @guide.id,
edition: { assigned_to_id: "" },
}
assert_response 200
assert_response :ok
end

should "save the edition changes while performing an activity" do
Expand Down Expand Up @@ -887,7 +887,7 @@ class EditionsControllerTest < ActionController::TestCase
edition: { reviewer: bob.name },
}

assert_response(302)
assert_response(:found)
assert_equal "Something went wrong when attempting to claim 2i.", flash[:danger]
end

Expand Down Expand Up @@ -1038,7 +1038,7 @@ class EditionsControllerTest < ActionController::TestCase

should "requesting a publication that doesn't exist returns a 404" do
get :show, params: { id: "4e663834e2ba80480a0000e6" }
assert_response 404
assert_response :not_found
end

should "we can view a guide" do
Expand Down

0 comments on commit 3a255ea

Please sign in to comment.