Infer type for component specs automatically

This commit is contained in:
Javi Martín
2021-08-17 22:07:39 +02:00
parent e5cd763385
commit 4cbf945228
51 changed files with 54 additions and 50 deletions

View File

@@ -20,6 +20,10 @@ RSpec.configure do |config|
config.include(CommonActions)
config.include(ActiveSupport::Testing::TimeHelpers)
config.define_derived_metadata(file_path: Regexp.new("/spec/components/")) do |metadata|
metadata[:type] = :component
end
config.before(:suite) do
Rails.application.load_seed
end