Sha256: 710001de776b3a48d899d4d60e0487e96fae2183c58b7c6dce1399dd070b6eb8
Contents?: true
Size: 549 Bytes
Versions: 26
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' describe 'String#strip_margin' do it 'strips margin on every line of string' do code = <<-END |def test | some_method | other_method |end END expect(code.strip_margin('|')) .to eq("def test\n some_method\n other_method\nend\n") end it 'strips special characters margin from every line' do code = <<-END {{1}}def test {{1}} some_method {{1}}end END expect(code.strip_margin('{{1}}')) .to eq("def test\n some_method\nend\n") end end
Version data entries
26 entries across 23 versions & 6 rubygems