test/unit/test_support.rb in aurb-1.1.1 vs test/unit/test_support.rb in aurb-1.1.2
- old
+ new
@@ -10,17 +10,17 @@
end
context 'Hash' do
setup do
@hash_str = {'hello' => 'world'}
- @hash_sym = {:hello => 'world'}
+ @hash_sym = {:hello => 'world'}
end
should 'be able to symbolize keys' do
assert_equal @hash_sym, @hash_str.symbolize_keys
- symbolized = @hash_str.symbolize_keys!
- assert_equal @hash_sym, symbolized
+ @hash_str.symbolize_keys!
+ assert_equal @hash_sym, @hash_str
end
should 'provide methods for its keys through method_missing' do
assert_equal 'world', @hash_str.hello
assert_equal 'world', @hash_sym.hello
@@ -31,9 +31,10 @@
setup do
@str = 'foo'
end
should 'be able to colorize itself through the ansi library' do
+ assert @str.colorize(:blue)
assert_equal "\e[34mfoo\e[0m", @str.colorize(:blue)
end
end
end