Sha256: cabd71a22b3aaa84a99929b57c2662ab111866acfc5266d9a1d050cafc9e6d92

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 Bytes

Contents

# loaded by all test classes
require 'rubygems'
require_gem 'rspec'

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

3 entries across 3 versions & 1 rubygems

Version Path
s33r-0.5.1 test/test_setup.rb
s33r-0.5 test/test_setup.rb
s33r-0.5.2 test/test_setup.rb