Permalink
Browse files

Fix a border case in test runner

  • Loading branch information...
skanev committed Nov 11, 2011
1 parent cdeedee commit f6b0863b7cfaf95f54be394f8ef81248fb588a89
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/homework/runner.rb
View
@@ -27,7 +27,7 @@
:err => log_path.to_s,
:out => log_path.to_s
- if json_path.exist?
+ if json_path.exist? and not json_path.read.empty?
puts json_path.read
else
puts "{}"

0 comments on commit f6b0863

Please sign in to comment.