Log example name in test.log for easier debugging
This commit is contained in:
parent
c6d23e4742
commit
9ca7421daf
1 changed files with 6 additions and 0 deletions
|
|
@ -122,6 +122,12 @@ RSpec.configure do |config|
|
||||||
@request.host = Rails.application.routes.default_url_options[:host]
|
@request.host = Rails.application.routes.default_url_options[:host]
|
||||||
end
|
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
|
# use the config to use
|
||||||
# t('some.locale.key') instead of always having to type I18n.t
|
# t('some.locale.key') instead of always having to type I18n.t
|
||||||
config.include AbstractController::Translation
|
config.include AbstractController::Translation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue