Sha256: 72e91cbe8eaf97e0eff74f7d5854b569b6b4175c0636e0d29efe5c3a5b4c09b9
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true require 'cucumber/core/filter' module Cucumber module Core module Test class NameFilter < Filter.new(:name_regexps) def test_case(test_case) if accept?(test_case) test_case.describe_to(receiver) end self end private def accept?(test_case) name_regexps.empty? || name_regexps.any? { |name_regexp| test_case.match_name?(name_regexp) } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems