0 votes
1 view
in Devops and Agile by (18.3k points)

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?

1 Answer

0 votes
by (48.8k points)

As a remark. This line

page.status_code.should = '404'

Should be

page.status_code.should == 404

This worked for me with capybara-webkit.

...