Skip to content

Commit

Permalink
ruby 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Dec 8, 2024
1 parent ea0737e commit d44cb71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/verify_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def initialize

refute @controller.verify_recaptcha
assert_equal "reCAPTCHA verification failed, please try again.", @controller.flash[:recaptcha_error]
assert_equal "Recaptcha failure after api call. Api reply: {\"foo\"=>\"false\", \"bar\"=>\"invalid-site-secret-key\"}.", @controller.recaptcha_failure_reason
reason = @controller.recaptcha_failure_reason.gsub('"=>"', '" => "') # ruby 3.4+ adds spaces
assert_equal "Recaptcha failure after api call. Api reply: {\"foo\" => \"false\", \"bar\" => \"invalid-site-secret-key\"}.", reason
end

it "adds an error to the model" do
Expand Down

0 comments on commit d44cb71

Please sign in to comment.