Sha256: 8145b425aad8c1ee98eed85e00719ac81cecb1c37316efe0ed7d2fc9cbc47fcc
Contents?: true
Size: 643 Bytes
Versions: 5
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' describe Heirloom do before do @config_double = double 'config' @s3 = Heirloom::Destroyer::S3.new :config => @config_double, :region => 'us-west-1' end it "should delete the specified file from s3" do s3_double = double 's3 mock' @s3.should_receive(:s3).and_return(s3_double) s3_double.should_receive(:delete_object). with('bucket', "key_folder/key_name") @s3.destroy_file :key_name => 'key_name', :key_folder => 'key_folder', :bucket => 'bucket' end end
Version data entries
5 entries across 5 versions & 1 rubygems