begin require 'spec' require 'mocha' rescue LoadError require 'rubygems' require 'spec' require 'mocha' end $:.unshift(File.dirname(__FILE__) + '/../lib') require 'postalmethods' $VERBOSE = nil ##silence annoying warnings from soap4r PM_OPTS = {:username => 'imajes', :password => 'rubyr00ls'} # hash hacks to make hacking in specs easier class Hash # for excluding keys def except(*exclusions) self.reject { |key, value| exclusions.include? key.to_sym } end # for overriding keys def with(overrides = {}) self.merge overrides end end require "ruby-debug"