Sha256: 3cdf0d9bb3f3b9e061727eb45b608e495cc0387c4fac4d8dc6edfa8777c47846
Contents?: true
Size: 398 Bytes
Versions: 16
Compression:
Stored size: 398 Bytes
Contents
# encoding: utf-8 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
16 entries across 16 versions & 1 rubygems