Sha256: 11085855a8a639ab3ef1b710b4d143dbc433f22f8ce0bc9425685b117aa5fecc
Contents?: true
Size: 567 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-5.0.1 | spec/support/ruby_meta.rb |
sidekiq-unique-jobs-5.0.0 | spec/support/ruby_meta.rb |