Sha256: 49a4b08fb22b2667f6abc7119fe45317737779d1efb0605e44314aa9ab3f69be

Contents?: true

Size: 799 Bytes

Versions: 2

Compression:

Stored size: 799 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

  def auth_params
    @auth_params ||=
      begin
        hsh = YAML.load(File.open(File.join(File.expand_path(File.dirname(__FILE__)), 'credentials.yml'))).symbolize_keys!
      rescue
        # some fake auth values
        {
          :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

2 entries across 2 versions & 1 rubygems

Version Path
ruby-mws-0.0.3 spec/spec_helper.rb
ruby-mws-0.0.2 spec/spec_helper.rb