rearrange

This commit is contained in:
John Bintz 2011-03-30 09:11:02 -04:00
parent 3f4495198d
commit c598ad850d
3 changed files with 22 additions and 2 deletions

View File

@ -1,2 +1 @@
require 'rspec/core/formatters/quick_fix_formatter'
require 'rspec/quickfix-formatter'

View File

@ -0,0 +1,21 @@
require 'rspec/core/formatters/quick_fix_formatter'
module RSpec
class QuickFixFormatter < BaseTextFormatter
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
end