Skip to content
Snippets Groups Projects
Commit 1a4860a5 authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Hold value of I18n.locale with ApplicationHelperSpec (#3474)

parent 41fa5325
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,12 @@ describe ApplicationHelper do
end
describe 'add_rtl_body_class' do
around do |example|
current_locale = I18n.locale
example.run
I18n.locale = current_locale
end
it 'adds rtl body class if locale is Arabic' do
I18n.locale = :ar
expect(helper.add_rtl_body_class('other classes')).to eq 'other classes rtl'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment