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
abae0911
Commit
abae0911
authored
Apr 16, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issuables helper spec
parent
0774a78c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/helpers/issuables_helper_spec.rb
spec/helpers/issuables_helper_spec.rb
+4
-4
No files found.
spec/helpers/issuables_helper_spec.rb
View file @
abae0911
...
...
@@ -41,22 +41,22 @@ describe IssuablesHelper do
it
'returns "Open" when state is :opened'
do
expect
(
helper
.
issuables_state_counter_text
(
:issues
,
:opened
,
true
))
.
to
eq
(
'<span>Open</span> <span class="badge">42</span>'
)
.
to
eq
(
'<span>Open</span> <span class="badge
badge-pill
">42</span>'
)
end
it
'returns "Closed" when state is :closed'
do
expect
(
helper
.
issuables_state_counter_text
(
:issues
,
:closed
,
true
))
.
to
eq
(
'<span>Closed</span> <span class="badge">42</span>'
)
.
to
eq
(
'<span>Closed</span> <span class="badge
badge-pill
">42</span>'
)
end
it
'returns "Merged" when state is :merged'
do
expect
(
helper
.
issuables_state_counter_text
(
:merge_requests
,
:merged
,
true
))
.
to
eq
(
'<span>Merged</span> <span class="badge">42</span>'
)
.
to
eq
(
'<span>Merged</span> <span class="badge
badge-pill
">42</span>'
)
end
it
'returns "All" when state is :all'
do
expect
(
helper
.
issuables_state_counter_text
(
:merge_requests
,
:all
,
true
))
.
to
eq
(
'<span>All</span> <span class="badge">42</span>'
)
.
to
eq
(
'<span>All</span> <span class="badge
badge-pill
">42</span>'
)
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