rails3-bootstrap-devise-cancan
rails3-bootstrap-devise-cancan copied to clipboard
Devise using DELETE is not quite correct.
In section https://tutorials.railsapps.org/tutorials/rails3-bootstrap-devise-cancan#authentication there is an argument for /config/initializers/devise.rb to contain the following line
config.sign_out_via = Rails.env.test? ? :get : :delete
However commenting this line out does not trigger any (cucumber) tests to fail.
But when the line is changed to
config.sign_out_via = :delete
Then there are some cucumber tests to fail.
That is not in alignment with the explanation found in https://tutorials.railsapps.org/tutorials/rails3-bootstrap-devise-cancan#authentication