0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/discourse-rss-polling/spec/plugin_helper.rb
2025-07-15 16:38:05 +02:00

11 lines
323 B
Ruby
Vendored

# frozen_string_literal: true
module RssPollingSpecHelper
FILE_FIXTURE_PATH = File.expand_path("fixtures/files", File.dirname(__FILE__))
def rss_polling_file_fixture(fixture_name)
Pathname.new(File.join(FILE_FIXTURE_PATH, fixture_name))
end
end
RSpec.configure { |config| config.include RssPollingSpecHelper }