lib/xcpretty.rb in xcpretty-0.1.2 vs lib/xcpretty.rb in xcpretty-0.1.3

- old
+ new

@@ -3,31 +3,12 @@ require "xcpretty/syntax" require "xcpretty/formatters/formatter" require "xcpretty/formatters/simple" require "xcpretty/formatters/rspec" require "xcpretty/reporters/junit" +require "xcpretty/reporters/html" module XCPretty - module ExitStatus - - include XCPretty::Matchers - - POSSIBLE_FAILURES = [ - FAILING_TEST_MATCHER, - /\serror:\s/ - ] - - def self.code - $exit_status || 0 - end - - def self.handle(text) - POSSIBLE_FAILURES.detect do |failure| - $exit_status = 1 if text =~ failure - end - end - - end def self.class_from_path(path) source = File.read(path) klass = eval(source, nil, path) raise unless klass.is_a?(Class)