res0nat0r / ruby-aws

Ruby/AWS is a Ruby language library that makes it relatively easy for the programmer to retrieve information from the popular Amazon Web site via Amazon's Associates Web Services (AWS).

This URL has Read+Write access

ruby-aws / test / setup.rb
100644 32 lines (24 sloc) 0.592 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: setup.rb,v 1.3 2008/06/22 11:50:23 ianmacd Exp $
#
 
# Attempt to load Ruby/AWS using RubyGems.
#
begin
  require 'rubygems'
  gem 'ruby-aws'
rescue LoadError
  # Either we don't have RubyGems or we don't have a gem of Ruby/AWS.
end
 
# Require the essential library, be it via RubyGems or the default way.
#
require 'amazon/aws/search'
 
include Amazon::AWS
include Amazon::AWS::Search
 
class AWSTest < Test::Unit::TestCase
 
  def setup
    @rg = ResponseGroup.new( :Small )
    @req = Request.new
    @req.locale = 'uk'
    @req.cache = false
  end
 
  undef_method :default_test
 
end