Sha256: 6bbc86bedd80d574d44b691ec9faf59f7b4c3f2a16c00260d3d02ef91a91446d

Contents?: true

Size: 669 Bytes

Versions: 27

Compression:

Stored size: 669 Bytes

Contents

require 'spec_helper'

describe Heirloom do

    before do
      @config_mock = double 'config'
      @logger_mock = double 'logger'
      @config_mock.should_receive(:logger).and_return(@logger_mock)

      @s3 = Heirloom::Downloader::S3.new :config  => @config_mock,
                                         :region  => 'us-west-1'
    end

    it "should download the specified file from s3" do
      s3_mock = mock 's3 mock'
      @s3.should_receive(:s3).and_return(s3_mock)
      s3_mock.should_receive(:get_object).
              with 'bucket', 'key_name'
      @s3.download_file :key   => 'key_name',
                        :bucket     => 'bucket'
    end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
heirloom-0.8.3 spec/downloader/s3_spec.rb
heirloom-0.8.2 spec/downloader/s3_spec.rb
heirloom-0.8.1 spec/downloader/s3_spec.rb
heirloom-0.8.0 spec/downloader/s3_spec.rb
heirloom-0.7.4 spec/downloader/s3_spec.rb
heirloom-0.7.3 spec/downloader/s3_spec.rb
heirloom-0.7.3rc2 spec/downloader/s3_spec.rb
heirloom-0.7.3rc1 spec/downloader/s3_spec.rb
heirloom-0.7.2 spec/downloader/s3_spec.rb
heirloom-0.7.2rc2 spec/downloader/s3_spec.rb
heirloom-0.7.2rc1 spec/downloader/s3_spec.rb
heirloom-0.7.1 spec/downloader/s3_spec.rb
heirloom-0.7.0 spec/downloader/s3_spec.rb
heirloom-0.7.0rc1 spec/downloader/s3_spec.rb
heirloom-0.6.1 spec/downloader/s3_spec.rb
heirloom-0.6.0rc1 spec/downloader/s3_spec.rb
heirloom-0.5.0rc4 spec/downloader/s3_spec.rb
heirloom-0.5.0rc3 spec/downloader/s3_spec.rb
heirloom-0.5.0rc2 spec/downloader/s3_spec.rb
heirloom-0.5.0rc1 spec/downloader/s3_spec.rb