lib/rspec-system/formatter.rb in rspec-system-2.2.1 vs lib/rspec-system/formatter.rb in rspec-system-2.3.0
- old
+ new
@@ -22,22 +22,22 @@
# @param count [Fixnum] number of tests to run
# @return [void]
def start(count)
@max_tests = count
super(count)
- output << "=================================================================\n\n"
+ output << "\n"
output << bold("Commencing rspec-system tests\n")
output << bold("Total Test Count: ") << color(count, :cyan) << "\n\n"
end
# Display output when an example has started
#
# @param example [RSpec::Core::Example] example that is running
# @return [void]
def example_started(example)
super(example)
- output << "=================================================================\n\n"
+ output << "\n=begin===========================================================\n\n"
output << bold("Running test: ") << "#{next_index} of #{@max_tests}" << "\n"
output << bold("Description:\n ") << color(example.full_description, :magenta) << "\n\n"
end
# Display output when an example has passed
@@ -45,10 +45,11 @@
# @param example [RSpec::Core::Example] example that is running
# @return [void]
def example_passed(example)
super(example)
output << "\n" << bold('Result: ') << success_color('passed') << "\n\n"
+ output << "=end=============================================================\n\n"
end
# Display output when an example is pending
#
# @param example [RSpec::Core::Example] example that is running
@@ -56,10 +57,11 @@
def example_pending(example)
super(example)
msg = example.execution_result[:pending_message]
output << "\n" << bold('Result: ') << pending_color('pending') << "\n"
output << bold("Reason: ") << "#{msg}\n\n"
+ output << "=end=============================================================\n\n"
end
# Display output when an example has failed
#
# @param example [RSpec::Core::Example] example that is running
@@ -67,9 +69,10 @@
def example_failed(example)
super(example)
msg = example.execution_result[:exception]
output << "\n" << bold('Result: ') << failure_color('failed') << "\n"
output << bold("Reason:\n") << "#{msg}\n\n"
+ output << "=end=============================================================\n\n"
end
# Obtains next index value so we can keep a count of what test we are upto
#
# @api private