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
Jérome Perrin
gitlab-ce
Commits
0bc48797
Commit
0bc48797
authored
Jan 13, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revise sortable_name test formatting
parent
dc3d40ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
spec/models/commit_status_spec.rb
spec/models/commit_status_spec.rb
+1
-4
No files found.
spec/models/commit_status_spec.rb
View file @
0bc48797
...
@@ -245,8 +245,6 @@ describe CommitStatus, models: true do
...
@@ -245,8 +245,6 @@ describe CommitStatus, models: true do
end
end
describe
'#sortable_name'
do
describe
'#sortable_name'
do
subject
{
commit_status
.
sortable_name
}
tests
=
{
tests
=
{
'karma'
=>
[
'karma'
],
'karma'
=>
[
'karma'
],
'karma 0 20'
=>
[
'karma '
,
0
,
' '
,
20
],
'karma 0 20'
=>
[
'karma '
,
0
,
' '
,
20
],
...
@@ -260,8 +258,7 @@ describe CommitStatus, models: true do
...
@@ -260,8 +258,7 @@ describe CommitStatus, models: true do
tests
.
each
do
|
name
,
sortable_name
|
tests
.
each
do
|
name
,
sortable_name
|
it
"'
#{
name
}
' sorts as '
#{
sortable_name
}
'"
do
it
"'
#{
name
}
' sorts as '
#{
sortable_name
}
'"
do
commit_status
.
name
=
name
commit_status
.
name
=
name
expect
(
commit_status
.
sortable_name
).
to
eq
(
sortable_name
)
is_expected
.
to
eq
(
sortable_name
)
end
end
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