Save syndication sources to posts

This commit is contained in:
2023-01-29 16:54:34 +11:00
parent 37932ea4ad
commit 2d371812f5
17 changed files with 231 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
# frozen_string_literal: true
require "dry/system"
RSpec.configure do |config|
Dir[File.join(__dir__, "*.rb")].sort.each do |file|
options = Dry::System::MagicCommentsParser.call(file)
tag_name = options[:require_with_metadata]
next unless tag_name
tag_name = File.basename(file, File.extname(file)) if tag_name.eql?(true)
config.when_first_matching_example_defined(tag_name.to_sym) do
require file
end
end
end
Dir[SPEC_ROOT.join("support", "**", "global_config.rb")].each { require _1 }