Sha256: 341f75ac6eeab7717e9df72ad8251a3cd979bebe9ccf22b6031ddb8fb03e313f

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

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 = {:api_key=>'1a7ba530-d926-4b17-aaae-2ea215ff25fd'}

# 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"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
postalmethods-1.1.4 spec/spec_helper.rb
postalmethods-1.1.3 spec/spec_helper.rb