Sha256: f2fe1786b6d70d5437a24e275bd18dbfd0e193286e5181a5ea7e0f42afb258b6

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

require 'lib/ramaze/spec/helper/snippets'

describe "String#unindent" do
  it "should remove indentation" do
    %(
      hello
        how
          are
        you
      doing
    ).ui.should == \
%(hello
  how
    are
  you
doing)
  end

  it 'should not break on a single line' do
    'word'.unindent.should == 'word'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-0.3.5 spec/snippets/string/unindent.rb
ramaze-0.3.0 spec/snippets/string/unindent.rb