Sha256: 047a44d71819c5c7c7ff7880ad04d233276c39e586bbb5d55507597051407687
Contents?: true
Size: 719 Bytes
Versions: 40
Compression:
Stored size: 719 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe String, '#strip_indentation!' do it "should remove unneccessary whitespace from the beginning of a line" do a_string = <<-STRING here be something STRING a_string.realign_indentation.should == <<-STRING here be something STRING end it "should remove unneccessary whitespace from the beginning of all lines, but keep indentation" do a_string = <<-STRING here be something indented more blah test gurr STRING a_string.realign_indentation.should == <<-STRING here be something indented more blah test gurr STRING end end
Version data entries
40 entries across 39 versions & 3 rubygems