Sha256: dbecd935834612c79800d95cc2376c2094dbbb254d2add999f8f99fca456469c

Contents?: true

Size: 316 Bytes

Versions: 8

Compression:

Stored size: 316 Bytes

Contents

require 'spec_helper'

describe Unparser, '.unparse' do
  subject { described_class.unparse(node) }

  let(:node) { double('Node') }

  before do
    described_class::Emitter.should_receive(:visit) do |node, buffer|
      node.should be(node)
      buffer.append('foo')
    end
  end

  it { should eql('foo') }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
unparser-0.0.18 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.16 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.15 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.14 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.13 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.12 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.11 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.10 spec/unit/unparser/class_methods/unparse_spec.rb