mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-03 05:29:42 +08:00
11 lines
323 B
Ruby
11 lines
323 B
Ruby
# 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 }
|