# File lib/spec/runner/formatter/nested_text_formatter.rb, line 44 def current_indentation INDENT*@last_nested_descriptions.length end
# File lib/spec/runner/formatter/nested_text_formatter.rb, line 27 def example_failed(example, counter, failure) output.puts(red("#{current_indentation}#{example.description} (FAILED - #{counter})")) output.flush end
# File lib/spec/runner/formatter/nested_text_formatter.rb, line 15 def example_group_started(example_group) super example_group.nested_descriptions.each_with_index do |nested_description, i| unless example_group.nested_descriptions[0..i] == @last_nested_descriptions[0..i] output.puts "#{INDENT*i}#{nested_description}" end end @last_nested_descriptions = example_group.nested_descriptions end
# File lib/spec/runner/formatter/nested_text_formatter.rb, line 32 def example_passed(example) message = "#{current_indentation}#{example.description}" output.puts green(message) output.flush end
# File lib/spec/runner/formatter/nested_text_formatter.rb, line 38 def example_pending(example, message, deprecated_pending_location=nil) super output.puts yellow("#{current_indentation}#{example.description} (PENDING: #{message})") output.flush end
Generated with the Darkfish Rdoc Generator 2.