File: fixture.rb

package info (click to toggle)
ruby-unicode-plot 0.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: ruby: 2,871; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'pathname'

module Helper
  module Fixture
    def fixture_dir
      test_dir = Pathname(File.expand_path("../..", __FILE__))
      test_dir.join("fixtures")
    end

    def fixture_path(*components)
      fixture_dir.join(*components)
    end
  end
end