Tôi đã spec sau:Làm thế nào để kiểm tra mã phản hồi với Capybara + Selenium
it "deletes post", :js => true do
...
...
page.status_code.should = '404'
end
Dòng page.status_code
được đem lại cho tôi lỗi này:
Capybara::NotSupportedByDriverError
Làm thế nào để kiểm tra mã trạng thái của trang ?
liên quan: https://groups.google.com/forum/?fromgroups=#!topic/ruby-capybara/KdMvhjcjm8E – tokland