spec/integration_spec.rb in parallel_tests-0.4.11 vs spec/integration_spec.rb in parallel_tests-0.4.12

- old
+ new

@@ -61,9 +61,14 @@ it "can exec given commands with ENV['TEST_ENV_NUM']" do result = `#{executable} -e 'ruby -e "puts ENV[:TEST_ENV_NUMBER.to_s].inspect"' -n 4` result.split("\n").sort.should == %w["" "2" "3" "4"] end + it "can exec given command non-parallel" do + result = `#{executable} -e 'ruby -e "sleep(rand(10)/100.0); puts ENV[:TEST_ENV_NUMBER.to_s].inspect"' -n 4 --non-parallel` + result.split("\n").should == %w["" "2" "3" "4"] + end + it "exists with success if all sub-processes returned success" do system("#{executable} -e 'cat /dev/null' -n 4").should == true end it "exists with failure if any sub-processes returned failure" do \ No newline at end of file