Sha256: 747a227281b33875b3a257e06580b48066d25a7ef618f5d3f3584289c64e5678
Contents?: true
Size: 421 Bytes
Versions: 3
Compression:
Stored size: 421 Bytes
Contents
require 'spec_helper' describe Unparser::Buffer, '#indent' do let(:object) { described_class.new } subject { object.indent } it 'should indent with two chars' do object.append('foo') object.nl object.indent object.append('bar') object.nl object.indent object.append('baz') expect(object.content).to eql("foo\n bar\n baz") end it_should_behave_like 'a command method' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unparser-0.1.5 | spec/unit/unparser/buffer/indent_spec.rb |
unparser-0.1.4 | spec/unit/unparser/buffer/indent_spec.rb |
unparser-0.1.3 | spec/unit/unparser/buffer/indent_spec.rb |