debian-mirror-gitlab/spec/support/fixture_helpers.rb

12 lines
262 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
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