Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Require all files in spec/support
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Mar 17, 2012
1 parent 317f3a1 commit 903904d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/spec_helper.rb
@@ -1,12 +1,15 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'support'))
require 'fileutils'
require 'mailman'
require 'rspec'
require 'pop3_mock'
require 'maildir'

# Require all files in spec/support (Mocks, helpers, etc.)
Dir[File.join(File.dirname(__FILE__), "support", "**", "*.rb")].each do |f|
require File.expand_path(f)
end

unless defined?(SPEC_ROOT)
SPEC_ROOT = File.join(File.dirname(__FILE__))
end
Expand Down

0 comments on commit 903904d

Please sign in to comment.