lib/petitest/subscribers/progress_report_subscriber.rb in petitest-0.2.1 vs lib/petitest/subscribers/progress_report_subscriber.rb in petitest-0.3.0

- old
+ new

@@ -7,22 +7,22 @@ class ProgressReportSubscriber < ::Petitest::Subscribers::BaseSubscriber include ::Petitest::SubscriberConcerns::OutputConcern include ::Petitest::SubscriberConcerns::TimeConcern # @note Override - def after_running_test_case(test_case) + def after_running_test(test) super - string = ::Petitest::Texts::TestCaseResultCharacterText.new(test_case: test_case).to_s + string = ::Petitest::Texts::TestResultCharacterText.new(test: test).to_s output.print(string) end # @note Override - def after_running_test_cases(test_cases) + def after_running_test_plan(test_plan) super - string = ::Petitest::Texts::TestCasesResultText.new( + string = ::Petitest::Texts::TestsResultText.new( finished_at: finished_at, started_at: started_at, - test_cases: test_cases, + tests: test_plan.tests, ).to_s output.puts(string) end end end