Sha256: c61041302540de349c27b861b772d8fa28d476a9a429ba4e7fbe8f8c26a2986c

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 Bytes

Contents

require "rubygems"
require "test/unit"
require "shoulda"
require "mocha"

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__) , '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__) , 'utilities'))
require "filesystem_test_helper"
require 'amazon_associate'


AmazonAssociate::Request.configure do |options|
  options[:aWS_access_key_id] = ENV["AWS_ACCESS_KEY"] || ""
  options[:secret_key] = ENV["AWS_SECRET_KEY"] || ""
  
  #raise exception if user has not entered their access key
  if options[:aWS_access_key_id] == ""
    raise "Access key is not entered - enter an access key in test_helper.rb if you'd like to run tests" 
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
dpickett-amazon_associate-0.7.0 test/test_helper.rb
amazon_associate-0.7.0 test/test_helper.rb