Sha256: 34d935dfa6df82266b31faf79ea04c713f97101decbe158e194f3e7d155f1a92

Contents?: true

Size: 480 Bytes

Versions: 6

Compression:

Stored size: 480 Bytes

Contents

require 'spec_helper'

module Cucumber::Ast
  describe TreeWalker do
    let(:tree_walker) do
      TreeWalker.new(nil, [mock('listener', :before_visit_features => nil)])
    end
    let(:features) { mock('features', :accept => nil) }

    it "should visit features" do
      tree_walker.should_not_receive(:warn)
      tree_walker.visit_features(features)
    end

    it "should return self" do
      tree_walker.visit_features(features).should == tree_walker
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cucumber-1.3.2 spec/cucumber/ast/tree_walker_spec.rb
cucumber-1.3.1 spec/cucumber/ast/tree_walker_spec.rb
cucumber-1.3.0 spec/cucumber/ast/tree_walker_spec.rb
cucumber-1.2.5 spec/cucumber/ast/tree_walker_spec.rb
cucumber-1.2.3 spec/cucumber/ast/tree_walker_spec.rb
cucumber-1.2.2 spec/cucumber/ast/tree_walker_spec.rb