Sha256: c0fc83fb2944420112ad4a3426f3d7d348b86ac8e6e1f0960b95e99529a18664

Contents?: true

Size: 659 Bytes

Versions: 75

Compression:

Stored size: 659 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'
require 'cucumber/step_mother'
require 'cucumber/ast'

module Cucumber
  module Ast
    describe Visitor do
      
      it "should support checking scenario name matches regexps" do
        visitor = Visitor.new(mock("step mother"))
        scenario = Scenario.new(background=nil,
          comment=Comment.new(""),
          tags=Tags.new(0, []), 
          line=99,
          keyword="",
          name="test name", 
          steps=[])

        visitor.options = {:name_regexps => [/name/]}
        
        visitor.matches_scenario_names?(scenario).should be_true
      end
      
    end
  end
end

Version data entries

75 entries across 75 versions & 7 rubygems

Version Path
cucumber-0.3.90 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.91 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.92 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.93 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.1 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.10 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.11 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.6 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.2 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.3 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.5 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.4 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.7 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.9 spec/cucumber/ast/visitor_spec.rb
cucumber-0.3.8 spec/cucumber/ast/visitor_spec.rb