File: fixture_helpers.rb

package info (click to toggle)
puppet-module-puppetlabs-vcsrepo 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 828 kB
  • sloc: ruby: 6,359; sh: 49; makefile: 7
file content (7 lines) | stat: -rw-r--r-- 152 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
module FixtureHelpers

  def fixture(name, ext = '.txt')
    File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', name.to_s + ext))
  end

end