spec/unit/unparser/emitter/class_methods/visit_spec.rb in unparser-0.0.8 vs spec/unit/unparser/emitter/class_methods/visit_spec.rb in unparser-0.0.10

- old
+ new

@@ -2,10 +2,10 @@ describe Unparser::Emitter, '.visit' do subject { object.visit(node, buffer) } let(:object) { described_class } - let(:node) { mock('Node', :type => type, :source_map => nil) } + let(:node) { double('Node', :type => type, :source_map => nil) } let(:buffer) { Unparser::Buffer.new } before do stub_const('Unparser::Emitter::REGISTRY', { :dummy => Dummy }) end