Sha256: 0d457a105db29b68eae09f23498bc465c18080ffbf4611137ea7846967a18331
Contents?: true
Size: 379 Bytes
Versions: 17
Compression:
Stored size: 379 Bytes
Contents
require 'spec_helper' describe Unparser::Buffer, '#capture_content' do let(:object) { described_class.new } it 'should capture only the content appended within the block' do object.append('foo') object.nl object.indent captured = object.capture_content do object.append('bar') object.nl end expect(captured).to eql(" bar\n") end end
Version data entries
17 entries across 17 versions & 1 rubygems