Skip to content

Commit

Permalink
Fix bug in the spec guards(!)
Browse files Browse the repository at this point in the history
Instead of duplicating the logic from ChildProcess.new, just
check what implementation is actually used. This should make
sure stuff like this won't happen again.
  • Loading branch information
jarib committed Jan 23, 2012
1 parent fa02a1d commit 0e6b1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -151,7 +151,7 @@ def can_bind?(host, port)
@process && @process.alive? && @process.stop
}

if ChildProcess.jruby? && !ChildProcess.posix_spawn?
if ChildProcess.jruby? && ChildProcess.new("true").instance_of?(ChildProcess::JRuby::Process)
c.filter_run_excluding :process_builder => false
end

Expand Down

0 comments on commit 0e6b1ea

Please sign in to comment.