Sha256: d173642e8e2146a838bd0515fec15c80eea5d787126f4bb64e666a120ac6ba5e

Contents?: true

Size: 379 Bytes

Versions: 8

Compression:

Stored size: 379 Bytes

Contents

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

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

describe 'Errors' do
  tests.each do |test|
    it %Q{fails to parse "#{test['expression']}" with "#{test['error']}"} do
      parser = Cucumber::TagExpressions::Parser.new
      expect { parser.parse(test['expression']) }.to raise_error(test['error'])
    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/errors_spec.rb
cucumber-tag-expressions-5.0.6 spec/errors_spec.rb
cucumber-tag-expressions-5.0.5 spec/errors_spec.rb
cucumber-tag-expressions-5.0.4 spec/errors_spec.rb
cucumber-tag-expressions-5.0.3 spec/errors_spec.rb
cucumber-tag-expressions-5.0.2 spec/errors_spec.rb
cucumber-tag-expressions-5.0.1 spec/errors_spec.rb
cucumber-tag-expressions-5.0.0 spec/errors_spec.rb