Sha256: 1b1706c25b760ff882cd379ab04fff4be5b3423f27bbd2a4c7b3ad1887426fc8

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

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

describe 'Errors' do
  tests.each do |test|
    let(:parser) { Cucumber::TagExpressions::Parser.new }

    it "fails to parse '#{test['expression']}' with '#{test['error']}'" do
      expect { parser.parse(test['expression']) }.to raise_error(test['error'])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber-tag-expressions-6.1.1 spec/errors_spec.rb
cucumber-tag-expressions-6.1.0 spec/errors_spec.rb