Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
ffe4e5c7
Commit
ffe4e5c7
authored
Apr 24, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve specs
parent
7f66e8ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/helpers/icons_helper_spec.rb
spec/helpers/icons_helper_spec.rb
+3
-1
No files found.
spec/helpers/icons_helper_spec.rb
View file @
ffe4e5c7
...
@@ -4,12 +4,14 @@ describe IconsHelper do
...
@@ -4,12 +4,14 @@ describe IconsHelper do
describe
'icon'
do
describe
'icon'
do
it
'returns aria-hidden by default'
do
it
'returns aria-hidden by default'
do
star
=
icon
(
'star'
)
star
=
icon
(
'star'
)
expect
(
star
[
'aria-hidden'
]).
to
eq
'aria-hidden'
expect
(
star
[
'aria-hidden'
]).
to
eq
'aria-hidden'
end
end
it
'does not return aria-hidden if aria-label is set'
do
it
'does not return aria-hidden if aria-label is set'
do
up
=
icon
(
'up'
,
'aria-label'
=>
'up'
)
up
=
icon
(
'up'
,
'aria-label'
=>
'up'
)
expect
(
up
[
'aria-hidden'
]).
to
eq
nil
expect
(
up
[
'aria-hidden'
]).
to
be_nil
expect
(
up
[
'aria-label'
]).
to
eq
'aria-label'
expect
(
up
[
'aria-label'
]).
to
eq
'aria-label'
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment