Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
c926aa1657a5
Commit
4a6bc1f6
authored
Mar 06, 2017
by
Rémy Coutable
Browse files
Merge branch 'change-colour-for-testing-fallback' into 'master'
Change language for testing colour fallback See merge request !9537
parents
1a7113615b25
7dce4c54a593
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/controllers/projects/graphs_controller_spec.rb
View file @
c926aa16
...
...
@@ -30,18 +30,18 @@
double
(
languages:
{
'Ruby'
=>
1000
,
'CoffeeScript'
=>
350
,
'
PowerShell'
=>
15
'
NSIS'
=>
15
})
end
let
(
:expected_values
)
do
p
s_color
=
"#
#{
Digest
::
SHA256
.
hexdigest
(
'
PowerShell
'
)[
0
...
6
]
}
"
nsi
s_color
=
"#
#{
Digest
::
SHA256
.
hexdigest
(
'
NSIS
'
)[
0
...
6
]
}
"
[
# colors from Linguist:
{
label:
"Ruby"
,
color:
"#701516"
,
highlight:
"#701516"
},
{
label:
"CoffeeScript"
,
color:
"#244776"
,
highlight:
"#244776"
},
{
label:
"Ruby"
,
color:
"#701516"
,
highlight:
"#701516"
},
{
label:
"CoffeeScript"
,
color:
"#244776"
,
highlight:
"#244776"
},
# colors from SHA256 fallback:
{
label:
"
PowerShell"
,
color:
p
s_color
,
highlight:
p
s_color
}
{
label:
"
NSIS"
,
color:
nsi
s_color
,
highlight:
nsi
s_color
}
]
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