Sha256: 5ea68ccd290d2a54feda7a9ee969e83cd4cc8c431d8ee901931ab4cdc89bd3d1
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
require 'zmqp' require 'pathname' require 'bundler' Bundler.setup Bundler.require :test BASE_PATH = Pathname.new(__FILE__).dirname + '..' RSpec.configure do |config| # config.exclusion_filter = { :slow => true } # config.filter = { :focus => true } # config.include(UserExampleHelpers) # config.mock_with :mocha # config.mock_with :flexmock # config.mock_with :rr end #$LOAD_PATH << "." unless $LOAD_PATH.include? "." # moronic 1.9.2 breaks things bad # #require 'rspec' #require 'yaml' # #def rspec2? # defined?(RSpec) #end amqp_config = File.dirname(__FILE__) + '/amqp.yml' if File.exists? amqp_config class Hash def symbolize_keys self.inject({}) { |result, (key, value)| new_key = key.is_a?(String) ? key.to_sym : key new_value = value.is_a?(Hash) ? value.symbolize_keys : value result[new_key] = new_value result } end end AMQP_OPTS = YAML::load_file(amqp_config).symbolize_keys[:test] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zmqp-0.0.1 | spec/spec_helper.rb |