rearrange things

This commit is contained in:
John Bintz 2011-07-20 09:55:09 -04:00
parent 88dbf97234
commit 2b212a7716
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,17 @@
module QuickFixFormatterBase
def dump_summary(duration, example_count, failure_count, pending_count)
end
def dump_profile
end
def dump_pending
end
def dump_failures
failed_examples.each do |example|
output.puts "%s:%s:%s" % [ example.file_path, example.metadata[:line_number], example.metadata[:execution_result][:exception].message.gsub("\n", ' ') ]
end
end
end

View File

@ -0,0 +1,9 @@
require 'spec/runner/formatter/base_formatter'
require 'rspec-quickfix-formatter/base'
module Spec::Runner::Formatter
class QuickFixFormatter < BaseFormatter
include QuickFixFormatterBase
end
end