summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: 9c3c7bf448ce225c1f3109a2839690f275ed546d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# add lib directory to the search path
libdir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)

require 'rubygems'
require 'spec'

# Console redirection helper
require File.expand_path(File.join(File.dirname(__FILE__), 'support/capture_output_helper'))

Spec::Runner.configure do |config|
  include CaptureOutputHelper
end