mirror of
https://github.com/jimeh/amqp-failover.git
synced 2026-02-19 10:56:44 +00:00
updated load paths and structure of specs a bit
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user