From 63e017fbaa846b8b2bcc52110962a04cd8c09cd4 Mon Sep 17 00:00:00 2001 From: Garen Torikian Date: Mon, 6 Apr 2015 08:32:23 -0700 Subject: [PATCH] Rename to TestColorProximity --- test/{test_color_threshold.rb => test_color_proximity.rb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename test/{test_color_threshold.rb => test_color_proximity.rb} (91%) diff --git a/test/test_color_threshold.rb b/test/test_color_proximity.rb similarity index 91% rename from test/test_color_threshold.rb rename to test/test_color_proximity.rb index f19dd73a..ff47d36a 100644 --- a/test/test_color_threshold.rb +++ b/test/test_color_proximity.rb @@ -1,13 +1,13 @@ require_relative "./helper" -class TestColorThreshold < Minitest::Test +class TestColorProximity < Minitest::Test include Linguist def cut_hash(color) color[1..-1] end - def test_color_threshold + def test_color_proximity langs_with_colors = Language.all.reject { |language| language.color.nil? } cp = ColorProximity.new(0.02, langs_with_colors.map { |lang| cut_hash(lang.color) }) failing_threshold = langs_with_colors.map do |lang|