Sha256: 8feb174efce8cb3edb470729e62548282d38d7b64ba78dcb93db7939de0056b1
Contents?: true
Size: 990 Bytes
Versions: 23
Compression:
Stored size: 990 Bytes
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_stub = stub 'verify', :catalog_domain_exists? => false Heirloom::Catalog::Verify.should_receive(:new). with(:config => @config_stub). and_return @verify_stub @setup = Heirloom::Catalog::Setup.new :config => @config_stub, :name => 'new_archive' end it "should call sdb to create the catalog domain" do @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
23 entries across 23 versions & 1 rubygems