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
5aacd9d4
Commit
5aacd9d4
authored
7 years ago
by
Akihiko Odaki
Committed by
Eugen Rochko
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Spec FlashesHelper (#3414)
parent
d24d3fa2
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/flashes_helper_spec.rb
+19
-0
19 additions, 0 deletions
spec/helpers/flashes_helper_spec.rb
with
19 additions
and
0 deletions
spec/helpers/flashes_helper_spec.rb
0 → 100644
+
19
−
0
View file @
5aacd9d4
# frozen_string_literal: true
require
'rails_helper'
describe
FlashesHelper
,
type: :helper
do
describe
'user_facing_flashes'
do
it
'returns user facing flashes'
do
flash
[
:alert
]
=
'an alert'
flash
[
:error
]
=
'an error'
flash
[
:notice
]
=
'a notice'
flash
[
:success
]
=
'a success'
flash
[
:not_user_facing
]
=
'a not user facing flash'
expect
(
helper
.
user_facing_flashes
).
to
eq
'alert'
=>
'an alert'
,
'error'
=>
'an error'
,
'notice'
=>
'a notice'
,
'success'
=>
'a success'
end
end
end
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