Changeset 32

Show
Ignore:
Timestamp:
11/18/07 22:36:34 (10 months ago)
Author:
tonttu
Message:

Fixed a problem with Rails 2.0 & erb emulation. Reported and fixed by Gudao Luo.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/malline/lib/malline/erb_out.rb

    r26 r32  
    2525                        @view << value 
    2626                end 
     27                alias_method :<<, :concat 
    2728        end 
    2829end 
  • trunk/malline/test/malline_test.rb

    r30 r32  
    182182                end 
    183183        end 
     184 
     185        def test_erbout 
     186                string = "" 
     187                erb = ErbOut.new string 
     188                erb.concat 'Foo' 
     189                erb << 'Bar' 
     190                assert_equal('FooBar', string) 
     191        end 
    184192end