Sha256: f979ad13bc600f4ef5611f07d1609725fc25d3454908cab50b270636e93015ff

Contents?: true

Size: 313 Bytes

Versions: 36

Compression:

Stored size: 313 Bytes

Contents

require 'spec_helper'

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

  subject { object.nl }

  it 'writes a newline' do
    object.append('foo')
    subject
    object.append('bar')
    expect(object.content).to eql("foo\nbar")
  end

  it_should_behave_like 'a command method'
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
unparser-0.4.8 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.7 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.6 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.5 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.4 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.3 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.2 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.1 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.4.0 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.3.0 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.2.8 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.2.7 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.2.6 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.2.5 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.1.5 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.1.4 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.1.3 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.1.2 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.1.1 spec/unit/unparser/buffer/nl_spec.rb
unparser-0.1.0 spec/unit/unparser/buffer/nl_spec.rb