require 'spec_helper' module Lucid::AST describe Walker do let(:tdl_walker) do Walker.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