Sha256: 6ae9fcd44a51a0c774b5e74bb6932d104c747fe7839321fc50fadbc3b27d5bbf

Contents?: true

Size: 386 Bytes

Versions: 19

Compression:

Stored size: 386 Bytes

Contents

require 'spec_helper'

describe Unparser::Buffer, '#unindent' do
  let(:object) { described_class.new }

  subject { object.unindent }

  it 'unindents two chars' do
    object.append('foo')
    object.indent
    object.append('bar')
    object.unindent
    object.append('baz')
    expect(object.content).to eql("foo\n  bar\nbaz")
  end

  it_should_behave_like 'a command method'
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
unparser-0.1.2 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.1.1 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.1.0 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.18 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.16 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.15 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.14 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.13 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.12 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.11 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.10 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.8 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.7 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.6 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.5 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.4 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.3 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.2 spec/unit/unparser/buffer/unindent_spec.rb
unparser-0.0.1 spec/unit/unparser/buffer/unindent_spec.rb