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
aslakhellesoy-cucumber-0.3.7.2 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.7.3 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.7.4 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.7.5 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.7 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.8 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.9.1 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.9.2 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.9.3 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.9.4 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.9.5 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.9 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.90 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.92 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.93.1 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.93 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.94.1 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.94 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.95 spec/cucumber/ast/visitor_spec.rb
aslakhellesoy-cucumber-0.3.96 spec/cucumber/ast/visitor_spec.rb