I've written some tests using Capybara, but I'm not using selenium and neither any other JS drivers. But my doubt is if I can test a destroy method this way? Since I need to confirm a JS confirmation and the data-method = "delete" can't be visited...
I would like to do something very Capybara's way like:
visit '/people/123', :data-method => 'delete'
Do you guys know if is there some way to do that?
Thanks in advance, Andre