Sha256: 46769730f8fadea0a31690d7ad9c0cec4caf8eb2c481e1a2adc6e6d3b55d0a27
Contents?: true
Size: 696 Bytes
Versions: 17
Compression:
Stored size: 696 Bytes
Contents
require 'test/unit' require 'uri' $:.unshift File.dirname(__FILE__) + '/../../lib' require 'aws/s3' begin require_library_or_gem 'breakpoint' rescue LoadError end TEST_BUCKET = 'aws-s3-tests' TEST_FILE = File.dirname(__FILE__) + '/test_file.data' class Test::Unit::TestCase include AWS::S3 def establish_real_connection Base.establish_connection!( :access_key_id => ENV['AMAZON_ACCESS_KEY_ID'], :secret_access_key => ENV['AMAZON_SECRET_ACCESS_KEY'] ) end def disconnect! Base.disconnect end class TestBucket < Bucket set_current_bucket_to TEST_BUCKET end class TestS3Object < S3Object set_current_bucket_to TEST_BUCKET end end
Version data entries
17 entries across 17 versions & 10 rubygems