File: instafail.rb

package info (click to toggle)
ruby-rspec-instafail 1.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 164 kB
  • sloc: ruby: 242; makefile: 2
file content (9 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
module RSpec
  gem_spec = Gem::Specification.find_all_by_name('rspec-core').first
  if gem_spec
    version = gem_spec.version
    require "rspec/instafail/rspec_#{[3, version.segments.first].min}"
  else
    require "rspec/instafail/rspec_1"
  end
end