Permalink
Browse files

Provide proper exit status

  • Loading branch information...
1 parent a24d200 commit df87d4c2efc77882431bc7ff3ffb0da4b06ff64a @mynyml committed Jan 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nanotest.rb
View
@@ -17,5 +17,5 @@ def self.results #:nodoc:
@@dots.join + "\n" + @@failures.join("\n")
end
- at_exit { puts results unless results.strip.empty? }
+ at_exit { puts results unless results.strip.empty?; exit @@failures.empty? }
end

0 comments on commit df87d4c

Please sign in to comment.