Sha256: 1b27ba65b69892e07d1a7a48d92d0223fed3b016bdae74eeaa263ee74ae79cb2

Contents?: true

Size: 825 Bytes

Versions: 1

Compression:

Stored size: 825 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'awesome_print'
require 'ephemeral_response'

require 'ruby-mws'

RSpec.configure do |config|
  def fixture(path)
    File.open(File.join(File.expand_path(File.dirname(__FILE__)), 'fixtures', path)).read
  end

  def mws_object
    @mws_object ||= MWS.new(auth_params)
  end

  # To test, create spec/credentials.yml or fill in below
  def auth_params
    @auth_params ||=
      begin
        hsh = YAML.load(File.open(File.join(File.expand_path(File.dirname(__FILE__)), 'credentials.yml'))).symbolize_keys!
      rescue
        {
          :aws_access_key_id  => 'access',
          :secret_access_key  => 'super_secret',
          :seller_id          => 'doma',
          :marketplace_id     => '123'
        }
      end
  end
end

class TestWorksError < StandardError
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-mws-0.0.4 spec/spec_helper.rb