summaryrefslogtreecommitdiff
path: root/spec/support/fixture_helpers.rb
blob: a05c9d18002e4a19e0bf9efa709daa04d44ee57a (plain)
1
2
3
4
5
6
7
8
9
10
11
module FixtureHelpers
  def fixture_file(filename)
    return '' if filename.blank?
    file_path = File.expand_path(Rails.root.join('spec/fixtures/', filename))
    File.read(file_path)
  end
end

RSpec.configure do |config|
  config.include FixtureHelpers
end