Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Simple Captcha 插件来生成验证码。有谁知道我如何修改 Rails 测试来处理这个问题?
如果 RAILS_ENV 为“test”,简单验证码会自动返回验证码有效。从源代码:
def simple_captcha_valid? return true if RAILS_ENV == 'test' ...