Sha256: 48fe681430550265525abf58db8f69e687111ef009f4be878e4429a53fc809b9

Contents?: true

Size: 314 Bytes

Versions: 8

Compression:

Stored size: 314 Bytes

Contents

require 'spec_helper'

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

  let(:node) { mock('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.8 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.7 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.6 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.5 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.4 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.3 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.2 spec/unit/unparser/class_methods/unparse_spec.rb
unparser-0.0.1 spec/unit/unparser/class_methods/unparse_spec.rb