summaryrefslogtreecommitdiff
path: root/spec/support/fixture_file_helper.rb
blob: e5b8bdede3a98fb91c381aafccf5fddd704da613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module FixtureFileHelper
  def fixture_file_content(path, data = {})
    fixture_file(path).read
  end

  def fixture_file(path)
    Pathname.pwd.join("spec/fixtures/#{path}")
  end
end

RSpec.configure do |config|
  config.include(FixtureFileHelper)
end