Sha256: 4b270d72ad1a4c34309586c28fe06ca30a77e02dc708dd5b95445bf56485fbbe

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe String do
  
  it "should strip all blank lines in the end" do
    text = <<-TEXT
      some text 
      and more more more
      some other
      
      with blank lines in the middle
      and in the end
      
         
        
      
    TEXT

    expected = "      some text 
      and more more more
      some other
      
      with blank lines in the middle
      and in the end"
    
    text.strip_blank_lines_at_end.should == expected
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fabiokung-rfactor-0.0.1 spec/string_ext_spec.rb
fabiokung-rfactor-0.0.2 spec/string_ext_spec.rb