parallel_tests 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parallel_tests (0.12.2)
4
+ parallel_tests (0.12.3)
5
5
  parallel
6
6
 
7
7
  GEM
@@ -64,7 +64,7 @@ module ParallelTests
64
64
  cmd = "#{exports};#{cmd}"
65
65
 
66
66
  output, errput, exitstatus = nil
67
- if RUBY_ENGINE == "jruby"
67
+ if RUBY_PLATFORM == "java"
68
68
  # - JRuby's popen3 doesn't pass arguments correctly to the shell, so we use stdin
69
69
  # - JRuby's open cannot handle local variables properly so we would have to use instance variables
70
70
  Open3.popen3("sh -") do |stdin, stdout, stderr, thread|
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '0.12.2'
2
+ VERSION = Version = '0.12.3'
3
3
  end
@@ -139,7 +139,7 @@ describe 'CLI' do
139
139
  end
140
140
 
141
141
  it "runs faster with more processes" do
142
- pending if RUBY_ENGINE == "jruby" # just too slow ...
142
+ pending if RUBY_PLATFORM == "java" # just too slow ...
143
143
  2.times{|i|
144
144
  write "spec/xxx#{i}_spec.rb", 'describe("it"){it("should"){sleep 5}}; $stderr.puts ENV["TEST_ENV_NUMBER"]'
145
145
  }
@@ -198,7 +198,7 @@ describe 'CLI' do
198
198
  end
199
199
 
200
200
  it "can wait_for_other_processes_to_finish" do
201
- pending if RUBY_ENGINE == "jruby" # just too slow ...
201
+ pending if RUBY_PLATFORM == "java" # just too slow ...
202
202
  write "test/a_test.rb", "require 'parallel_tests'; sleep 0.5 ; ParallelTests.wait_for_other_processes_to_finish; puts 'a'"
203
203
  write "test/b_test.rb", "sleep 1; puts 'b'"
204
204
  write "test/c_test.rb", "sleep 1.5; puts 'c'"
@@ -60,7 +60,7 @@ describe ParallelTests::Test::Runner do
60
60
  end
61
61
 
62
62
  it "groups by size and adds isolated separately" do
63
- pending if RUBY_ENGINE == "jruby"
63
+ pending if RUBY_PLATFORM == "java"
64
64
  ParallelTests::Test::Runner.should_receive(:with_runtime_info).
65
65
  and_return([
66
66
  ['aaa', 0],
@@ -174,7 +174,7 @@ EOF
174
174
  end
175
175
 
176
176
  it "finds test files but ignores those in symlinked folders" do
177
- pending if RUBY_ENGINE == "jruby"
177
+ pending if RUBY_PLATFORM == "java"
178
178
  with_files(['a/a_test.rb','b/b_test.rb']) do |root|
179
179
  `ln -s #{root}/a #{root}/b/link`
180
180
  call(["#{root}/b"], :symlinks => false).sort.should == [
@@ -355,16 +355,12 @@ EOF
355
355
  end
356
356
 
357
357
  it "prints output while running" do
358
- pending if RUBY_ENGINE == "jruby"
358
+ pending if RUBY_PLATFORM == "java"
359
359
  run_with_file("$stdout.sync = true; puts 123; sleep 0.1; print 345; sleep 0.1; puts 567") do |path|
360
- $stdout.should_receive(:print).with("123\n")
361
- if RUBY_VERSION =~ /^1\.8/
362
- $stdout.should_receive(:print).with("345")
363
- $stdout.should_receive(:print).with("567\n")
364
- else
365
- $stdout.should_receive(:print).with("345567\n")
366
- end
360
+ received = ""
361
+ $stdout.stub(:print).with{|x| received << x.strip }
367
362
  result = call("ruby #{path}", 1, 4, {})
363
+ received.should == "123345567"
368
364
  result.should == {
369
365
  :stdout => "123\n345567\n",
370
366
  :stderr => "",
@@ -90,7 +90,7 @@ describe ParallelTests do
90
90
  end
91
91
 
92
92
  it "waits for other processes to finish" do
93
- pending if RUBY_ENGINE == "jruby"
93
+ pending if RUBY_PLATFORM == "java"
94
94
  ENV["TEST_ENV_NUMBER"] = "2"
95
95
  counter = 0
96
96
  ParallelTests.stub(:sleep).with{ sleep 0.1; counter += 1 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-06 00:00:00.000000000 Z
12
+ date: 2013-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parallel
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  segments:
98
98
  - 0
99
- hash: 927573145207475441
99
+ hash: -1030493048777351158
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  none: false
102
102
  requirements:
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: 927573145207475441
108
+ hash: -1030493048777351158
109
109
  requirements: []
110
110
  rubyforge_project:
111
111
  rubygems_version: 1.8.25