I have the following spec:
it "deletes post", :js => true do
...
...
page.status_code.should = '404'
end
The page.status_code
line is giving me this error:
Capybara::NotSupportedByDriverError
How do I check the page's status code?
status_code
is not currently supported by the Selenium driver. You will need to write a different test to check the response status code.