Sha256: 3fa2a07204cbdd94f71168a5b6c07cc5bc476fda0c7b79e6fffb704bc57572f8

Contents?: true

Size: 404 Bytes

Versions: 8

Compression:

Stored size: 404 Bytes

Contents

require 'cucumber/tag_expressions/parser'
require 'yaml'

tests = YAML.load_file('../testdata/parsing.yml')

describe 'Parsing' do
  tests.each do |test|
    it %Q{parses "#{test['expression']}" into "#{test['formatted']}"} do
      parser = Cucumber::TagExpressions::Parser.new
      expression = parser.parse(test['expression'])
      expect(expression.to_s).to eq(test['formatted'])
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-tag-expressions-5.0.6/spec/parsing_spec.rb
cucumber-tag-expressions-5.0.6 spec/parsing_spec.rb
cucumber-tag-expressions-5.0.5 spec/parsing_spec.rb
cucumber-tag-expressions-5.0.4 spec/parsing_spec.rb
cucumber-tag-expressions-5.0.3 spec/parsing_spec.rb
cucumber-tag-expressions-5.0.2 spec/parsing_spec.rb
cucumber-tag-expressions-5.0.1 spec/parsing_spec.rb
cucumber-tag-expressions-5.0.0 spec/parsing_spec.rb