Sha256: ed69d92f88568c75dded0466a7aa5f9072bbdb009046c6ada2243b5395c6dab5

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

require File.dirname(__FILE__) + "/../../lib_root"

module Spec
  module Rake
    class SpecTask
      def deep_test(options)
        deep_test_options = DeepTest::Options.new(options)
        deep_test_path = File.expand_path(DeepTest::LIB_ROOT + "/deep_test")
        @deep_test_spec_opts = [
          "--require #{deep_test_path}",
          "--runner 'DeepTest::Spec::Runner:#{deep_test_options.to_command_line}'"
        ]
        spec_opts.concat @deep_test_spec_opts
      end

      def spec_opts=(options)
        @spec_opts = (@deep_test_spec_opts || []) + options
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

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