Skip to content

Commit

Permalink
Auto-tag feature spec type
Browse files Browse the repository at this point in the history
  • Loading branch information
apexatoll committed Oct 27, 2023
1 parent a821c4f commit 0900662
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/support/metadata.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0900662

Please sign in to comment.