Sha256: a4cd2710ce28cbb935d959e4fffe185f00cae3a7e99e3a6ca4d50132afe71ed2

Contents?: true

Size: 538 Bytes

Versions: 6

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

6 entries across 6 versions & 2 rubygems

Version Path
jperkins-deep_test-1.2.2 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-1.4.0 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-1.3.0 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-1.2.0 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-1.1.0 lib/deep_test/rspec_detector.rb
jstorimer-deep-test-1.0.0 lib/deep_test/rspec_detector.rb