summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-06 09:15:47 +0000
committerRémy Coutable <remy@rymai.me>2017-03-06 09:15:47 +0000
commit4a6bc1f6a415b82e88473f3bd076f95fb4973562 (patch)
treeab09ade1356b1decc45044038181357f25510280
parentf965cb96b3c5b808eb61bc1f19c892a76ff95526 (diff)
parent40c9a948b068e84873c8369d16d328790cab1cda (diff)
downloadgitlab-ce-4a6bc1f6a415b82e88473f3bd076f95fb4973562.tar.gz
Merge branch 'change-colour-for-testing-fallback' into 'master'
Change language for testing colour fallback See merge request !9537
-rw-r--r--spec/controllers/projects/graphs_controller_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/controllers/projects/graphs_controller_spec.rb b/spec/controllers/projects/graphs_controller_spec.rb
index 049bae1899d..e0de62e4454 100644
--- a/spec/controllers/projects/graphs_controller_spec.rb
+++ b/spec/controllers/projects/graphs_controller_spec.rb
@@ -30,18 +30,18 @@ describe Projects::GraphsController do
double(languages: {
'Ruby' => 1000,
'CoffeeScript' => 350,
- 'PowerShell' => 15
+ 'NSIS' => 15
})
end
let(:expected_values) do
- ps_color = "##{Digest::SHA256.hexdigest('PowerShell')[0...6]}"
+ nsis_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: ps_color, highlight: ps_color }
+ { label: "NSIS", color: nsis_color, highlight: nsis_color }
]
end