Sha256: 7172e385afca5db274400a795a1ac517ebdcc3e6707b55c0f1ae0befe13f296e
Contents?: true
Size: 1.28 KB
Versions: 6
Compression:
Stored size: 1.28 KB
Contents
require File.dirname(__FILE__) + "/../../../spec_helper" describe Spec::Rake::SpecTask do it "should allow deep_test configuration" do t = Spec::Rake::SpecTask.new do |t| t.deep_test :number_of_workers => 2 end deep_test_path = File.expand_path(File.dirname(__FILE__) + '/../../../../lib/deep_test') options = DeepTest::Options.new(:number_of_workers => 2) t.spec_opts.should == ["--require #{deep_test_path}", "--runner 'DeepTest::Spec::Runner:#{options.to_command_line}'"] end it "should maintain deep_test options if spec_opts is set directly" do t = Spec::Rake::SpecTask.new do |t| t.deep_test({}) t.spec_opts = ["anoption"] end deep_test_path = File.expand_path(File.dirname(__FILE__) + '/../../../../lib/deep_test') options = DeepTest::Options.new({}) t.spec_opts.should == ["--require #{deep_test_path}", "--runner 'DeepTest::Spec::Runner:#{options.to_command_line}'", "anoption"] end it "should allow spec_opts to be set without deep_test" do t = Spec::Rake::SpecTask.new do |t| t.spec_opts = ["anoption"] end t.spec_opts.should == ["anoption"] end end
Version data entries
6 entries across 6 versions & 2 rubygems