diff options
author | Georg G <nilsding@nilsding.org> | 2017-02-26 20:14:02 +0100 |
---|---|---|
committer | Georg G <nilsding@nilsding.org> | 2017-02-26 20:14:02 +0100 |
commit | 40c9a948b068e84873c8369d16d328790cab1cda (patch) | |
tree | 77b19ed70fc3fe3498ddfe2c30c1247846176ba7 | |
parent | b29e4689a86a51d70d7353dd0d4dc4fddc6c644f (diff) | |
download | gitlab-ce-40c9a948b068e84873c8369d16d328790cab1cda.tar.gz |
Change language for testing colour fallback
-rw-r--r-- | spec/controllers/projects/graphs_controller_spec.rb | 10 |
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 c4a7aa7d63e..203b20667bf 100644 --- a/spec/controllers/projects/graphs_controller_spec.rb +++ b/spec/controllers/projects/graphs_controller_spec.rb @@ -14,18 +14,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 |