提交 4a6bc1f6 编写于 作者: R Rémy Coutable

Merge branch 'change-colour-for-testing-fallback' into 'master'

Change language for testing colour fallback

See merge request !9537
...@@ -30,18 +30,18 @@ describe Projects::GraphsController do ...@@ -30,18 +30,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册