From 09006622603128aedc3e34cb8729e14276c5c3a4 Mon Sep 17 00:00:00 2001 From: Chris Welham <71787007+apexatoll@users.noreply.github.com> Date: Sat, 28 Oct 2023 00:27:16 +0100 Subject: [PATCH] Auto-tag feature spec type --- spec/support/metadata.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/support/metadata.rb diff --git a/spec/support/metadata.rb b/spec/support/metadata.rb new file mode 100644 index 0000000..05d11d8 --- /dev/null +++ b/spec/support/metadata.rb @@ -0,0 +1,11 @@ +RSpec.configure do |config| + path_tags = { + %r{spec/features} => { type: :feature } + }.freeze + + path_tags.each do |file_path, tags| + config.define_derived_metadata(file_path:) do |metadata| + metadata.merge!(tags) + end + end +end