From 9ca7421dafc3d3d726b48fb861e3aa0e29b81f4c Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Tue, 21 Jan 2025 16:48:35 +0100 Subject: [PATCH] Log example name in test.log for easier debugging --- spec/spec_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 71065740..a2a821d6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -122,6 +122,12 @@ RSpec.configure do |config| @request.host = Rails.application.routes.default_url_options[:host] end + config.before(:each) do + Rails.logger.debug '======================================================================' + Rails.logger.debug { "\n\n\n\t\t#{RSpec.current_example.metadata[:full_description]}\n\n\n" } + Rails.logger.debug '======================================================================' + end + # use the config to use # t('some.locale.key') instead of always having to type I18n.t config.include AbstractController::Translation