Test that grouped languages have no color.

This commit is contained in:
Lars Brinkhoff
2016-10-12 12:53:50 +02:00
parent ba52e48ceb
commit de9ff713a4

View File

@@ -497,7 +497,8 @@ class TestLanguage < Minitest::Test
def test_no_unused_colours
Language.all.each do |language|
next unless language.type == :data || language.type == :prose
next unless language.type == :data || language.type == :prose ||
language.group.to_s != language.name
assert !language.color, "Unused colour assigned to #{language.name}"
end
end