From c598ad850dd3aacd0695bfea257b9d79a8566277 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 30 Mar 2011 09:11:02 -0400 Subject: [PATCH] rearrange --- lib/rspec-quickfix-formatter.rb | 3 +-- .../core/formatters/quick_fix_formatter.rb | 0 lib/rspec/quickfix-formatter.rb | 21 +++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) delete mode 100644 lib/rspec/core/formatters/quick_fix_formatter.rb create mode 100644 lib/rspec/quickfix-formatter.rb diff --git a/lib/rspec-quickfix-formatter.rb b/lib/rspec-quickfix-formatter.rb index 8629325..fc7bbd0 100644 --- a/lib/rspec-quickfix-formatter.rb +++ b/lib/rspec-quickfix-formatter.rb @@ -1,2 +1 @@ -require 'rspec/core/formatters/quick_fix_formatter' - +require 'rspec/quickfix-formatter' diff --git a/lib/rspec/core/formatters/quick_fix_formatter.rb b/lib/rspec/core/formatters/quick_fix_formatter.rb deleted file mode 100644 index e69de29..0000000 diff --git a/lib/rspec/quickfix-formatter.rb b/lib/rspec/quickfix-formatter.rb new file mode 100644 index 0000000..e6209f7 --- /dev/null +++ b/lib/rspec/quickfix-formatter.rb @@ -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 +