Sha256: a3894195c96f3dbf9a84dc9f4b78e3bd56f7df4bee5e0d7a48888a4e4c1979fa

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

require File.dirname(__FILE__) + '/../s3_test_constants'

context 'S3 sync methods' do
  setup do
    @base_dir = File.dirname(__FILE__)
    @text_filename =  @base_dir + '/../files/textfile.txt'
    @graphic_filename = @base_dir + '/../files/wave.jpg'
  end

  specify 'should return MD5 checksum for text files' do
    md5sum(@text_filename).should.equal('bbf560d44f092d22a30d3a562436ad8c')
  end

  specify 'should return MD5 checksum for graphic files' do
    md5sum(@graphic_filename).should.equal('80b669f252257eedd8a2606cb1a0df6a')
  end

  specify 'should be able to map a directory structure to S3 bucket keys' do
    fix
  end

  specify 'should return an array of local files to put to S3 based on differences between MD5 checksums' do
    fix
  end

  specify 'should convert S3 bucket keys into a "virtual" directory and file structure' do
    fix
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
s33r-0.2 test/cases/spec_sync.rb