spec/integration_spec.rb in parallel_tests-0.4.4 vs spec/integration_spec.rb in parallel_tests-0.4.5

- old
+ new

@@ -86,15 +86,15 @@ write 'xxx4_spec.rb', 'describe("it"){it("should"){sleep 2}}' write 'xxx5_spec.rb', 'describe("it"){it("should"){sleep 2}}' write 'xxx6_spec.rb', 'describe("it"){it("should"){sleep 2}}' t = Time.now run_specs :processes => 6 - expected = ((Parallel.processor_count == 1 or ENV['RUN_CODE_RUN']) ? 10 : 5) + expected = 10 (Time.now - t).should <= expected end - it "can run with given files" do + it "can can with given files" do write "x1_spec.rb", "puts '111'" write "x2_spec.rb", "puts '222'" write "x3_spec.rb", "puts '333'" result = run_specs(:add => 'spec/x1_spec.rb spec/x3_spec.rb') result.should include('111') @@ -104,8 +104,8 @@ it "can run with test-options" do write "x1_spec.rb", "" write "x2_spec.rb", "" result = run_specs(:add => "--test-options ' --version'", :processes => 2) - result.should =~ /^rspec [\d\.]+\nrspec [\d\.]+$/m # prints version twice + result.should =~ /\d+\.\d+\.\d+\..*\d+\.\d+\.\d+\./m # prints version twice end end \ No newline at end of file