Log example name in test.log for easier debugging

This commit is contained in:
Henne Vogelsang 2025-01-21 16:48:35 +01:00
parent c6d23e4742
commit 9ca7421daf
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -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