Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mastofe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pleroma
mastofe
Commits
1a4860a5
Commit
1a4860a5
authored
7 years ago
by
Yamagishi Kazutoshi
Committed by
Eugen Rochko
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Hold value of I18n.locale with ApplicationHelperSpec (#3474)
parent
41fa5325
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/helpers/application_helper_spec.rb
+6
-0
6 additions, 0 deletions
spec/helpers/application_helper_spec.rb
with
6 additions
and
0 deletions
spec/helpers/application_helper_spec.rb
+
6
−
0
View file @
1a4860a5
...
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment