updated load paths and structure of specs a bit

This commit is contained in:
2011-01-27 11:10:37 +00:00
parent 01241a1689
commit 425caf9fb5
4 changed files with 13 additions and 9 deletions

View File

@@ -1,16 +1,18 @@
# encoding: utf-8
# add project-relative load paths
$LOAD_PATH.unshift File.dirname(__FILE__)
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
# require stuff
require 'rubygems'
begin
require 'mq'
rescue Object => e
rescue LoadError => e
require 'amqp'
end
require 'amqp/failover'
require 'rspec'
require 'rspec/autorun'
require 'rspec/autorun'