diff options
Diffstat (limited to 'lib/tasks/spec.rake')
| -rw-r--r-- | lib/tasks/spec.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/spec.rake b/lib/tasks/spec.rake index 49fbe1bd47a..a7cd7483bed 100644 --- a/lib/tasks/spec.rake +++ b/lib/tasks/spec.rake @@ -40,7 +40,7 @@ end def run_commands(cmds) cmds.each do |cmd| - system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) - raise "#{cmd} failed!" unless $?.exitstatus.zero? + system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) || + raise "#{cmd} failed!" end end |
