Sha256: 08d12f09d4d71212ef29d771f7872e1da29ea9e605788a574dfb203e58a33a61
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' module Cucumber::Ast describe TreeWalker do describe "when one of the listeners implements the method #visit_features" do it "should issue a warning about that interface being deprecated" do tw = TreeWalker.new(nil, [mock('listener', :visit_features => nil)], {}) tw.should_receive(:warn).with /no longer supported/ tw.visit_features(mock('features', :accept => nil)) end end it "should visit features" do tw = TreeWalker.new(nil, [mock('listener', :before_visit_features => nil)], {}) tw.should_not_receive(:warn) tw.visit_features(mock('features', :accept => nil)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-0.3.103 | spec/cucumber/ast/tree_walker_spec.rb |