Sha256: 1722f4aa5b9ca516e77defffca4b1e2181b1d677ae3057ad92b6798ef3486d6a

Contents?: true

Size: 753 Bytes

Versions: 1

Compression:

Stored size: 753 Bytes

Contents

# loaded by all test classes
require 'rubygems'
if respond_to? 'gem'
  gem 'rspec'
else
  require_gem 'rspec'
end


require File.dirname(__FILE__) + '/../lib/s33r'
include S33r
include S33r::S3Exception
include S33r::S3ACL
include S33r::S3Logging

# set up some constants
module Testing
  ACCESS_KEY = '44CF9590006BF252F707'
  SECRET_ACCESS_KEY = 'OtxrzxIsfpFjA7SwPzILwy8Bw21TLhquhboDYROV'
  EMAIL = 'elliot@somedomain.com'
end

def load_test_xml(filename)
  clean_xml(File.open(File.join(File.dirname(__FILE__), '/files', filename)).read)
end

# convenience for highlighting tasks
def todo
  fail
end

# clean newlines and tabs from XML to make comparisons easier
def clean_xml(xml_str)
  xml_str.gsub!(/\t/, '')
  xml_str.gsub!(/\n/, '')
  xml_str
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
s33r-0.5.3 test/test_setup.rb