Class: Spec::Rake::SpecTask

Inherits:
Object
  • Object
show all
Defined in:
lib/deep_test/spec/extensions/spec_task.rb

Instance Method Summary collapse

Instance Method Details

#deep_test(options) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/deep_test/spec/extensions/spec_task.rb', line 4

def deep_test(options)
  deep_test_options = DeepTest::Options.new(options)
  deep_test_path = File.expand_path(File.dirname(__FILE__) + 
                                    "/../../../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

#spec_opts=(options) ⇒ Object



15
16
17
# File 'lib/deep_test/spec/extensions/spec_task.rb', line 15

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