Merge pull request #8681 from SarvarKh/translation-correction

Add flash message translation for log out
This commit is contained in:
Filipe
2022-01-15 14:55:26 +00:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -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."

View File

@@ -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