Sha256: f61049415c93aa88d88f6833ace0d61710b71ce504edffe3a57defec32d36724

Contents?: true

Size: 666 Bytes

Versions: 3

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

require 'cucumber/cucumber_expressions/argument'
require 'cucumber/cucumber_expressions/tree_regexp'
require 'cucumber/cucumber_expressions/parameter_type_registry'

module Cucumber
  module CucumberExpressions
    describe Argument do
      it 'exposes parameter_type' do
        tree_regexp = TreeRegexp.new(/three (.*) mice/)
        parameter_type_registry = ParameterTypeRegistry.new
        arguments = Argument.build(tree_regexp, 'three blind mice', [parameter_type_registry.lookup_by_type_name('string')])
        argument = arguments[0]
        expect(argument.parameter_type.name).to eq('string')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-cucumber-expressions-17.0.1/spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-17.0.1 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-17.0.0 spec/cucumber/cucumber_expressions/argument_spec.rb