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
40c9a948
Commit
40c9a948
authored
Feb 26, 2017
by
Georg G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change language for testing colour fallback
parent
b29e4689
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/controllers/projects/graphs_controller_spec.rb
spec/controllers/projects/graphs_controller_spec.rb
+5
-5
No files found.
spec/controllers/projects/graphs_controller_spec.rb
View file @
40c9a948
...
@@ -14,18 +14,18 @@ describe Projects::GraphsController do
...
@@ -14,18 +14,18 @@ describe Projects::GraphsController do
double
(
languages:
{
double
(
languages:
{
'Ruby'
=>
1000
,
'Ruby'
=>
1000
,
'CoffeeScript'
=>
350
,
'CoffeeScript'
=>
350
,
'
PowerShell'
=>
15
'
NSIS'
=>
15
})
})
end
end
let
(
:expected_values
)
do
let
(
:expected_values
)
do
ps_color
=
"#
#{
Digest
::
SHA256
.
hexdigest
(
'PowerShell
'
)[
0
...
6
]
}
"
nsis_color
=
"#
#{
Digest
::
SHA256
.
hexdigest
(
'NSIS
'
)[
0
...
6
]
}
"
[
[
# colors from Linguist:
# colors from Linguist:
{
label:
"Ruby"
,
color:
"#701516"
,
highlight:
"#701516"
},
{
label:
"Ruby"
,
color:
"#701516"
,
highlight:
"#701516"
},
{
label:
"CoffeeScript"
,
color:
"#244776"
,
highlight:
"#244776"
},
{
label:
"CoffeeScript"
,
color:
"#244776"
,
highlight:
"#244776"
},
# colors from SHA256 fallback:
# colors from SHA256 fallback:
{
label:
"
PowerShell"
,
color:
ps_color
,
highlight:
ps_color
}
{
label:
"
NSIS"
,
color:
nsis_color
,
highlight:
nsis_color
}
]
]
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