From 97dbeb112bec7018e411dca066f1cc1ef811f4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TATSUNO=20=E2=80=9CTaz=E2=80=9D=20Yasuhiro?= Date: Mon, 25 Mar 2024 11:08:18 +0900 Subject: [PATCH] Fix minitest hook failing on error log (#188) --- lib/rspec/openapi/minitest_hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec/openapi/minitest_hooks.rb b/lib/rspec/openapi/minitest_hooks.rb index 19fc873..51ea601 100644 --- a/lib/rspec/openapi/minitest_hooks.rb +++ b/lib/rspec/openapi/minitest_hooks.rb @@ -45,6 +45,6 @@ def openapi! Minitest.after_run do result_recorder = RSpec::OpenAPI::ResultRecorder.new(RSpec::OpenAPI.path_records) result_recorder.record_results! - puts result_record.error_message if result_recorder.errors? + puts result_recorder.error_message if result_recorder.errors? end end