Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Explicitly convert exit code to integer, avoiding TypeError when retu…

…rn value of run is IO object proxied by DRb::DRbObject
  • Loading branch information...
commit 0998854b9e39275441246836da8be53d7e7a96d4 1 parent 4079561
Julian Scheid authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rspec/core/runner.rb
View
2  lib/rspec/core/runner.rb
@@ -8,7 +8,7 @@ class Runner
def self.autorun
return if autorun_disabled? || installed_at_exit? || running_in_drb?
@installed_at_exit = true
- at_exit { exit(run(ARGV, $stderr, $stdout)) }
+ at_exit { exit(run(ARGV, $stderr, $stdout).to_i) }
end
AT_EXIT_HOOK_BACKTRACE_LINE = "#{__FILE__}:#{__LINE__ - 2}:in `autorun'"
Please sign in to comment.
Something went wrong with that request. Please try again.