File: test_helper.rb

package info (click to toggle)
sup-mail 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,412 kB
  • sloc: ruby: 13,047; sh: 167; makefile: 12
file content (13 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "rubygems" rescue nil
require 'minitest/autorun'
require "rr"

def fixture_path(filename)
  File.expand_path("../fixtures/#{filename}", __FILE__)
end

def fixture_contents(filename)
  file = ''
  File.open(fixture_path(filename)) { |io| file = io.read }
  file
end