Sha256: e589a8ea1e923425da6ff839fe23e54080033f36e214dea2bfb3e5026590836a

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 Bytes

Contents

require_relative 'spec_helper'
require_relative '../../lib/microstatic/s3_deployer'

module Microstatic
describe 'uploading to a test bucket' do
  def test_bucket
    'microstatic-test-bucket'
  end

  def test_dir 
    File.expand_path( "../fixtures", __FILE__ ) 
  end

  def aws_creds
    {
      :access_key_id => ENV.fetch('AWS_ACCESS_KEY_ID'),
      :secret_access_key => ENV.fetch('AWS_SECRET_ACCESS_KEY')
    }
  end

  it 'succeeds' do
    deployer = S3Deployer.new( test_dir, test_bucket, aws_creds )
    deployer.upload
  end
  
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
microstatic-0.4.2 spec/integration/upload_to_test_bucket_spec.rb
microstatic-0.4.1 spec/integration/upload_to_test_bucket_spec.rb
microstatic-0.4.0 spec/integration/upload_to_test_bucket_spec.rb
microstatic-0.3.0 spec/integration/upload_to_test_bucket_spec.rb
microstatic-0.2.0 spec/integration/upload_to_test_bucket_spec.rb
microstatic-0.1.0 spec/integration/upload_to_test_bucket_spec.rb