Sha256: 29409efdf5543e500815c53f26ebaa13d292de4309c02430d5ea19fa02ec7f95
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
module RSpec # Rails 3: when installed as plugin, lib is not in load-path when running tests # https://github.com/grosser/rspec-instafail/pull/3 lib = File.expand_path(File.dirname(File.dirname(__FILE__))) $LOAD_PATH << lib unless $LOAD_PATH.include?(lib) if defined?(::RSpec::Core) && ::RSpec::Core::Version::STRING >= '3.0.0' require "rspec/instafail/rspec_3" else begin require "rspec/instafail/rspec_2" rescue LoadError # try rspec 1 require "rspec/instafail/rspec_1" end end require 'rspec/instafail/version' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-instafail-0.2.6 | lib/rspec/instafail.rb |
rspec-instafail-0.2.5 | lib/rspec/instafail.rb |