Sha256: 16f11de135e68dfcf40f20b3695387202183825c7d205a5ad141c13dd78442da

Contents?: true

Size: 538 Bytes

Versions: 4

Compression:

Stored size: 538 Bytes

Contents

module DeepTest
  class RSpecDetector
    def self.if_rspec_available
      if defined?(::Spec)
        require 'spec/version'
        if ::Spec::VERSION::MAJOR == 1 &&
           ::Spec::VERSION::MINOR == 1 &&
           ::Spec::VERSION::TINY  >= 8
          yield
        else
          require 'spec/rake/spectask'
          ::Spec::Rake::SpecTask.class_eval do
            def deep_test(options)
              raise "* DeepTest RSpec support requires RSpec 1.1.8"
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
deep_test_pre-2.0 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-2.0.0 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-0.2.0 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-0.1.0 lib/deep_test/rspec_detector.rb