Skip to content

Commit

Permalink
review changes verify_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Akashkarmakar787 authored Jan 14, 2025
1 parent 0ce0c24 commit 98ffb25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/verify_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def initialize
assert_equal "reCAPTCHA verification failed, please try again.", @controller.flash[:recaptcha_error]
end

it "does not verify via http call when response length exceeds G_RESPONSE_MAX_LIMIT" do
it "does not verify via http call when response length exceeds limit" do
# this returns a 400 or 413 instead of a 200 response with error code
# typical response length is less than 400 characters
str = "a" * 4001
Expand All @@ -209,7 +209,7 @@ def initialize
assert_equal "reCAPTCHA verification failed, please try again.", @controller.flash[:recaptcha_error]
end

it "does not verify via http call when response length below G_RESPONSE_MIN_LIMIT" do
it "does not verify via http call when response length below limit" do
# this returns a 400 or 413 instead of a 200 response with error code
# typical response length is less than 100 characters
str = "a" * 99
Expand Down

0 comments on commit 98ffb25

Please sign in to comment.