Sha256: ac6513cdf26d6f4833f50ca0e8b5f0eab6f17b2060c003bb8673f260413af551

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lucid-0.4.1 spec/lucid/ast/tdl_walker_spec.rb
lucid-0.4.0 spec/lucid/ast/tdl_walker_spec.rb