lib/guard/rspec/formatter.rb in guard-rspec-2.2.1 vs lib/guard/rspec/formatter.rb in guard-rspec-2.2.2
- old
+ new
@@ -3,10 +3,10 @@
require "rspec/core/formatters/base_formatter"
class Guard::RSpec::Formatter < RSpec::Core::Formatters::BaseFormatter
def dump_summary(duration, total, failures, pending)
- failed_specs = examples.keep_if{|e| e.execution_result[:status] == "failed"}.map{|s| s.metadata[:location]}
+ failed_specs = examples.delete_if{|e| e.execution_result[:status] != "failed"}.map{|s| s.metadata[:location]}
# if this fails don't kill everything
begin
FileUtils.mkdir_p('tmp')
File.open("./tmp/rspec_guard_result","w") do |f|