1

我尝试找到与 Capybara 进行检查的方法,当用户访问任何页面时,该协议已更改:(在 app/controllers/application.rb 中,我执行重定向到 https 而不是 http )如何检查?

4

1 回答 1

0

尝试这个:

current_url.should match /^https:/
于 2012-07-17T05:04:20.837 回答