diff --git a/test/integration/signup_test.rb b/test/integration/signup_test.rb index c75b52f..33c85c8 100644 --- a/test/integration/signup_test.rb +++ b/test/integration/signup_test.rb @@ -12,7 +12,7 @@ class SignupTest < ActionController::IntegrationTest registering_with_bot_test 5, 1 end assert_template 'signup' - assert_match /you are a robot/, response.body + assert_match /robot/, response.body end def test_signup_form_submission_must_not_block_after_min_signup_delay diff --git a/test/integration/user_registers_at_the_application_test.rb b/test/integration/user_registers_at_the_application_test.rb index fb364e3..12b1e45 100644 --- a/test/integration/user_registers_at_the_application_test.rb +++ b/test/integration/user_registers_at_the_application_test.rb @@ -19,6 +19,9 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest end def test_trying_an_existing_login_name + env = Environment.default + env.min_signup_delay = 0 + env.save! assert User.find_by_login('ze') # just to make sure that 'ze' already exists -- libgit2 0.21.2