File: fixtures_helper.rb

package info (click to toggle)
ruby-http-form-data 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 204 kB
  • sloc: ruby: 861; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require "pathname"

module FixturesHelper
  def fixture(filename)
    fixtures_root.join filename
  end

  def fixtures_root
    @fixtures_root ||= Pathname.new(__FILE__).join("../../fixtures").realpath
  end
end