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.4.1rc1 spec/downloader/s3_spec.rb
heirloom-0.4.0 spec/downloader/s3_spec.rb
heirloom-0.3.1 spec/downloader/s3_spec.rb
heirloom-0.3.0 spec/downloader/s3_spec.rb
heirloom-0.3.0.rc1 spec/downloader/s3_spec.rb
heirloom-0.2.0 spec/downloader/s3_spec.rb
heirloom-0.1.4 spec/downloader/s3_spec.rb