Sha256: 7b1ccec0b29cc3c4ff8b167fd38519c2cd19070671370e2347ecdb56e9457f50

Contents?: true

Size: 635 Bytes

Versions: 43

Compression:

Stored size: 635 Bytes

Contents

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

43 entries across 43 versions & 5 rubygems

Version Path
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/cucumber-cucumber-expressions-16.1.2/spec/cucumber/cucumber_expressions/argument_spec.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/argument_spec.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/argument_spec.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-16.1.2 spec/cucumber/cucumber_expressions/argument_spec.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-16.1.1 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-16.1.0 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-16.0.1 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-16.0.0 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-15.2.0 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-15.1.1 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-15.1.0 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-15.0.2 spec/cucumber/cucumber_expressions/argument_spec.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-cucumber-expressions-14.0.0/spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-15.0.1 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-14.0.0 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-13.1.3 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-13.1.2 spec/cucumber/cucumber_expressions/argument_spec.rb
cucumber-cucumber-expressions-13.1.1 spec/cucumber/cucumber_expressions/argument_spec.rb