Sha256: 91389b5776a697b73e05a91ad968ca620ac886c4b23ac66129aa9d8a42511154
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe Heirloom::Catalog::Setup do before do @logger_stub = stub 'logger', :info => true @config_stub = stub 'config', :logger => @logger_stub, :metadata_region => 'us-west-1' @verify_mock = mock 'verify' Heirloom::Catalog::Verify.should_receive(:new). with(:config => @config_stub). and_return @verify_mock @setup = Heirloom::Catalog::Setup.new :config => @config_stub, :name => 'new_archive' end it "should call sdb to create the catalog domain" do @verify_mock.should_receive(:catalog_domain_exists?). and_return false @sdb_mock = mock 'sdb' Heirloom::AWS::SimpleDB.should_receive(:new). with(:config => @config_stub). and_return @sdb_mock @sdb_mock.should_receive(:create_domain). with 'heirloom' @setup.create_catalog_domain end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.7.0rc1 | spec/catalog/setup_spec.rb |