I am using Cucumber and Capybara. I need to make an HTTP
DELETE request. Previously the features used webrat, so a simple statement like
visit "/comment/" + comment_id, :delete
worked, but now I am using Capybara.
The way to do a
GET request is simply:
And to do a post request:
But how can I simulate a
I found out that the driver Capybara is using is
Capybara::RackTest::Driver, if that is any help.
I have also tried:
Capybara.current_session.driver.delete "/comments/" + comment_id
But that does not work.