Sha256: 1efcc9894c0272350a86a7c3b7d79d74402b76388b33e0cb9eed394423234e3f
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true require 'cucumber/cucumber_expressions/parameter_type' module Cucumber module CucumberExpressions describe ParameterType do it 'does not allow ignore flag on regexp' do expect do ParameterType.new('case-insensitive', /[a-z]+/i, String, ->(s) { s }, true, true) end.to raise_error( CucumberExpressionError, "ParameterType Regexps can't use option Regexp::IGNORECASE" ) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems