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.
我尝试找到与 Capybara 进行检查的方法,当用户访问任何页面时,该协议已更改:(在 app/controllers/application.rb 中,我执行重定向到 https 而不是 http )如何检查?
尝试这个:
current_url.should match /^https:/