File: test_helper.rb

package info (click to toggle)
ruby-bourne 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 208 kB
  • ctags: 261
  • sloc: ruby: 1,353; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 776 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
unless defined?(STANDARD_OBJECT_PUBLIC_INSTANCE_METHODS)
  STANDARD_OBJECT_PUBLIC_INSTANCE_METHODS = Object.public_instance_methods
end

$:.unshift File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))
$:.unshift File.expand_path(File.join(File.dirname(__FILE__)))
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'unit'))
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'unit', 'parameter_matchers'))
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'acceptance'))

if ENV['MOCHA_OPTIONS'] == 'use_test_unit_gem'
  require 'rubygems'
  gem 'test-unit'
end

require 'test/unit'
require 'mocha/setup'

if defined?(MiniTest)
  FailedAssertion = MiniTest::Assertion
else
  FailedAssertion = Test::Unit::AssertionFailedError
end