mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add test for user log_out user#destroy
This commit is contained in:
@@ -30,4 +30,13 @@ describe Spree::UserSessionsController, type: :controller do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "destroy" do
|
||||
it "redirects to root with flash message" do
|
||||
spree_post :destroy
|
||||
|
||||
expect(response).to redirect_to root_path
|
||||
expect(flash[:notice]).to eq "Signed out successfully."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user