Sha256: 6fa93d605bf246a211f6f7d0963fdb3788377b50c5c20501267f531fa045fa13

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

require 'cql/filters'


module CQL

  class SsoLineCountFilter < TypeCountFilter

    def type_count(test)
      test.steps.size
    end

  end

  class LineFilter < ContentMatchFilter

    def execute(input)
      method_for_text = Gem.loaded_specs['cuke_modeler'].version.version[/^0/] ? :base : :text

      input.find_all do |tests|
        raw_step_lines = tests.steps.map { |step| step.send(method_for_text) }

        content_match?(raw_step_lines)
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cql-1.2.1 lib/cql/sso_filters.rb
cql-1.2.0 lib/cql/sso_filters.rb