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