spec/integration_spec.rb in parallel_tests-0.6.4 vs spec/integration_spec.rb in parallel_tests-0.6.5
- old
+ new
@@ -109,9 +109,16 @@
write "spec/x2_spec.rb", ""
result = run_tests(:add => "--test-options ' --version'", :processes => 2)
result.should =~ /\d+\.\d+\.\d+.*\d+\.\d+\.\d+/m # prints version twice
end
+ it "runs with test::unit" do
+ write "test/x1_test.rb", "require 'test/unit'; class XTest < Test::Unit::TestCase; def test_xxx; end; end"
+ result = run_tests(:type => :test)
+ result.should include('1 test')
+ $?.success?.should == true
+ end
+
it "passes test options to test::unit" do
write "test/x1_test.rb", "require 'test/unit'; class XTest < Test::Unit::TestCase; def test_xxx; end; end"
result = run_tests(:type => :test, :add => '--test-options "-v"')
result.should include('test_xxx') # verbose output of every test
end