From 1db6a7ff5f3fb10b18e166a751579d909a8f2f5c Mon Sep 17 00:00:00 2001 From: Gigamo Date: Sun, 11 Apr 2010 13:57:22 +0200 Subject: [PATCH] Reword String test --- test/unit/support_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/support_test.rb b/test/unit/support_test.rb index 3c7d229..5427572 100644 --- a/test/unit/support_test.rb +++ b/test/unit/support_test.rb @@ -28,11 +28,11 @@ class SupportTest < Test::Unit::TestCase end context 'String' do - should 'be able to colorize itself through the ansi library' do + should 'be able to colorize itself' do String::COLORS.each_with_index do |color, i| str = 'foo' assert str.colorize(color) - assert_equal "\e[0;#{30+i}mfoo\e[0m", str.colorize(color) + assert_equal "\e[0;#{30+i}m#{str}\e[0m", str.colorize(color) end end end