Sha256: e870dcf3377a2e3481b44898d36d112b2a9be0eb18c611e48c59cf895a8d3c0a

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

require 'spec_helper'

module Lucid::AST
  
  describe TDLWalker do
    let(:tdl_walker) do
      TDLWalker.new(nil, [double('listener', :before_visit_features => nil)])
    end
    let(:features) { double('features', :accept => nil) }

    it 'should visit features' do
      tdl_walker.should_not_receive(:warn)
      tdl_walker.visit_features(features)
    end

    it 'should return self' do
      tdl_walker.visit_features(features).should == tdl_walker
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lucid-0.3.3 spec/lucid/ast/tdl_walker_spec.rb
lucid-0.3.0 spec/lucid/ast/tdl_walker_spec.rb