diff --git a/config/initializers/simple_captcha.rb b/config/initializers/simple_captcha.rb index 25d3a1342..2ac5826c3 100644 --- a/config/initializers/simple_captcha.rb +++ b/config/initializers/simple_captcha.rb @@ -1,4 +1,4 @@ -SimpleCaptcha.always_pass = Rails.env.test? +SimpleCaptcha.always_pass = false SimpleCaptcha.setup do |sc| # default: 100x28 diff --git a/spec/features/organizations_spec.rb b/spec/features/organizations_spec.rb index a79264d65..00ec6c6f9 100644 --- a/spec/features/organizations_spec.rb +++ b/spec/features/organizations_spec.rb @@ -12,6 +12,7 @@ feature 'Organizations' do fill_in 'user_email', with: 'green@peace.com' fill_in 'user_password', with: 'greenpeace' fill_in 'user_password_confirmation', with: 'greenpeace' + fill_in 'user_captcha', with: correct_captcha_text click_button 'Sign up'