test/test_style_length.rb in reflexion-0.1.21 vs test/test_style_length.rb in reflexion-0.1.22

- old
+ new

@@ -4,15 +4,15 @@ require_relative 'helper' class TestStyleLength < Test::Unit::TestCase - def len (*args, &block) - Reflex::StyleLength.new *args, &block + def len(*args, &block) + Reflex::StyleLength.new(*args, &block) end - def test_initialize () + def test_initialize() assert_equal nil, len.type assert_equal 0, len.value assert_equal nil, len(nil).type assert_equal 0, len(nil).value @@ -46,21 +46,21 @@ assert_raise(ArgumentError) {len '0.5 fit'} assert_raise(ArgumentError) {len 'fit0.5'} assert_raise(ArgumentError) {len 'fit 0.5'} end - def test_to_s () + def test_to_s() assert_equal '', len.to_s assert_equal '', len(nil).to_s assert_equal '100px', len('100px').to_s assert_equal '100%', len('100%').to_s assert_equal '100.5%', len('100.5%').to_s assert_equal 'fill', len('fill').to_s assert_equal 'fit', len('fit').to_s assert_equal '0.5fill', len('0.5 fill').to_s end - def test_inspect () + def test_inspect() assert_nothing_raised {len.inspect} end end# TestStyleLength