Files
jekyll/test/test_ansi.rb
Brint O'Hearn 146d49dc8f Rubocop test cleanups for #4885
This commit cleans up rubocop violations for the following files:

test/test_ansi.rb
test/test_cleaner.rb
test/test_coffeescript.rb
test/test_collections.rb
test/test_command.rb
test/test_commands_serve.rb
2016-05-16 19:26:53 -05:00

24 lines
525 B
Ruby

require "helper"
class TestAnsi < JekyllUnitTest
context nil do
setup do
@subject = Jekyll::Utils::Ansi
end
Jekyll::Utils::Ansi::COLORS.each do |color, _val|
should "respond_to? #{color}" do
assert @subject.respond_to?(color)
end
end
should "be able to strip colors" do
assert_equal @subject.strip(@subject.yellow(@subject.red("hello"))), "hello"
end
should "be able to detect colors" do
assert @subject.has?(@subject.yellow("hello"))
end
end
end