Sha256: c4c628dde9d278fce08855e6f8612605bc4216b39b323a8ae39b588e7180eac3

Contents?: true

Size: 733 Bytes

Versions: 2

Compression:

Stored size: 733 Bytes

Contents

$VERBOSE = true

require 'ice_nine'
require 'regexp_property_values'
require_relative 'support/capturing_stderr'
require_relative 'support/shared_examples'

req_warn = capturing_stderr { require('regexp_parser') || fail('pre-required') }
req_warn.empty? || fail("requiring parser generated warnings:\n#{req_warn}")

RS = Regexp::Scanner
RL = Regexp::Lexer
RP = Regexp::Parser
RE = Regexp::Expression
T = Regexp::Syntax::Token

include Regexp::Expression

def ruby_version_at_least(version)
  Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new(version)
end

RSpec.configure do |config|
  config.around(:example) do |example|
    # treat unexpected warnings as failures
    expect { example.run }.not_to output.to_stderr
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/regexp_parser-2.2.0/spec/spec_helper.rb
regexp_parser-2.2.0 spec/spec_helper.rb