mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #8681 from SarvarKh/translation-correction
Add flash message translation for log out
This commit is contained in:
@@ -198,6 +198,9 @@ en:
|
||||
already_registered: "This email address is already registered. Please log in to continue, or go back and use another email address."
|
||||
success:
|
||||
logged_in_succesfully: "Logged in successfully"
|
||||
sessions:
|
||||
signed_out: "Signed out successfully."
|
||||
already_signed_out: "Signed out successfully."
|
||||
user_passwords:
|
||||
spree_user:
|
||||
updated_not_active: "Your password has been reset, but your email has not been confirmed yet."
|
||||
|
||||
@@ -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