Sha256: f5878fe45a9a415e180c3629a1a39cd9dc303047949f37e140849539849528da

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

RSpec.configure do |config|
  config.before(:each) do |example|
    ruby_ver = example.metadata[:ruby_ver]
    VERSION_REGEX.match(ruby_ver.to_s) do |match|
      version  = match[:version]
      operator = match[:operator]
      next unless ruby_ver

      raise 'Please specify how to compare the version with >= or < or =' unless operator

      unless RUBY_VERSION.send(operator, version)
        skip("Skipped due to version check (requirement was that ruby version is " \
             "#{operator} #{version}; was #{RUBY_VERSION})")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 spec/support/ruby_meta.rb