gitlab-org--gitlab-foss/spec/support/fixture_helpers.rb
2015-08-20 12:41:47 -07:00

11 lines
262 B
Ruby

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