gitlab-org--gitlab-foss/spec/support/fixture_helpers.rb
Lin Jen-Shin faa5dffbcc After Trace#limit, we seek to the next line in case
of breaking ANSI sequence or Unicode
2017-04-13 21:44:26 +08:00

14 lines
313 B
Ruby

module FixtureHelpers
def fixture_file(filename)
return '' if filename.blank?
File.read(expand_fixture_path(filename))
end
def expand_fixture_path(filename)
File.expand_path(Rails.root.join('spec/fixtures/', filename))
end
end
RSpec.configure do |config|
config.include FixtureHelpers
end