Sha256: 610cd301c08504a922f7b5d4cd23f183deae6c3dae9855c2a4a1e2a11f649255
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 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 it 'should find the first line with indentation' do %( hi there bob).ui.should == \ %(hi there bob) end it 'should have destructive version' do str = %( 1\n 2\n 3) str.ui! str.should == %(1\n 2\n3) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.9 | spec/snippets/string/unindent.rb |
ramaze-0.3.9.1 | spec/snippets/string/unindent.rb |