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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9a0073c7
Commit
9a0073c7
authored
Jul 03, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak expectation for pill spec
parent
b0765016
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
spec/helpers/todos_helper_spec.rb
spec/helpers/todos_helper_spec.rb
+5
-3
No files found.
spec/helpers/todos_helper_spec.rb
View file @
9a0073c7
...
...
@@ -167,10 +167,12 @@ RSpec.describe TodosHelper do
describe
'#todo_target_state_pill'
do
subject
{
helper
.
todo_target_state_pill
(
todo
)
}
shared_examples
'a rendered state pill'
do
|
at
r
r
|
shared_examples
'a rendered state pill'
do
|
at
t
r
|
it
'returns expected html'
do
html
=
"<span class=
\"
target-status
\"
><span class=
\"
status-box status-box-
#{
atrr
[
:type
]
}
-
#{
atrr
[
:state
].
dasherize
}
\"
>
#{
atrr
[
:state
].
capitalize
}
</span></span>"
expect
(
subject
).
to
eql
(
html
)
aggregate_failures
do
expect
(
subject
).
to
have_css
(
".status-box-
#{
attr
[
:type
]
}
-
#{
attr
[
:state
].
dasherize
}
"
)
expect
(
subject
).
to
have_content
(
attr
[
:state
].
capitalize
)
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