Sha256: 00a7f6bfbd1e18598a79c5d431cc7af273596d684e5359b47b42367f89d35b86

Contents?: true

Size: 314 Bytes

Versions: 47

Compression:

Stored size: 314 Bytes

Contents

require "spec_helper"

describe Liquidscript::Buffer do

  subject { described_class.new "hello ", "world" }

  its(:to_s) { should eq "hello world" }
  its(:inspect) { should eq '"hello world"' }

  it "appends a value" do
    subject.append(", test")
    expect(subject.to_s).to eq "hello world, test"
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
liquidscript-0.11.0 spec/liquidscript/buffer_spec.rb
liquidscript-0.11.0.rc1 spec/liquidscript/buffer_spec.rb
liquidscript-0.10.4 spec/liquidscript/buffer_spec.rb
liquidscript-0.10.3 spec/liquidscript/buffer_spec.rb
liquidscript-0.10.2 spec/liquidscript/buffer_spec.rb
liquidscript-0.10.1 spec/liquidscript/buffer_spec.rb
liquidscript-0.10.0 spec/liquidscript/buffer_spec.rb
liquidscript-0.9.2 spec/liquidscript/buffer_spec.rb
liquidscript-0.9.1 spec/liquidscript/buffer_spec.rb
liquidscript-0.9.0 spec/liquidscript/buffer_spec.rb
liquidscript-0.8.2 spec/liquidscript/buffer_spec.rb
liquidscript-0.8.1 spec/liquidscript/buffer_spec.rb
liquidscript-0.8.0 spec/liquidscript/buffer_spec.rb
liquidscript-0.7.12 spec/liquidscript/buffer_spec.rb
liquidscript-0.7.11 spec/liquidscript/buffer_spec.rb
liquidscript-0.7.10 spec/liquidscript/buffer_spec.rb
liquidscript-0.7.9 spec/liquidscript/buffer_spec.rb
liquidscript-0.7.8 spec/liquidscript/buffer_spec.rb
liquidscript-0.7.7 spec/liquidscript/buffer_spec.rb
liquidscript-0.7.6 spec/liquidscript/buffer_spec.rb