lib/spec/runner/formatter/failing_behaviours_formatter.rb in rspec-1.0.5 vs lib/spec/runner/formatter/failing_behaviours_formatter.rb in rspec-1.0.6
- old
+ new
@@ -1,24 +1,28 @@
module Spec
module Runner
module Formatter
class FailingBehavioursFormatter < BaseTextFormatter
def add_behaviour(behaviour_name)
- @behaviour_name = behaviour_name
+ if behaviour_name =~ /(.*) \(druby.*\)$/
+ @behaviour_name = $1
+ else
+ @behaviour_name = behaviour_name
+ end
end
- def example_failed(name, counter, failure)
+ def example_failed(example, counter, failure)
unless @behaviour_name.nil?
@output.puts @behaviour_name
@behaviour_name = nil
@output.flush
end
end
def dump_failure(counter, failure)
end
- def dump_summary(duration, example_count, failure_count, not_implemented_count)
+ def dump_summary(duration, example_count, failure_count, pending_count)
end
end
end
end
end