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

Version Path
heirloom-0.12.1 spec/catalog/setup_spec.rb
heirloom-0.12.0 spec/catalog/setup_spec.rb
heirloom-0.11.2 spec/catalog/setup_spec.rb
heirloom-0.11.1 spec/catalog/setup_spec.rb
heirloom-0.11.0 spec/catalog/setup_spec.rb
heirloom-0.11.0.beta.2 spec/catalog/setup_spec.rb
heirloom-0.11.0.beta.1 spec/catalog/setup_spec.rb
heirloom-0.10.1 spec/catalog/setup_spec.rb
heirloom-0.10.0 spec/catalog/setup_spec.rb
heirloom-0.9.0 spec/catalog/setup_spec.rb
heirloom-0.8.3 spec/catalog/setup_spec.rb
heirloom-0.8.2 spec/catalog/setup_spec.rb
heirloom-0.8.1 spec/catalog/setup_spec.rb
heirloom-0.8.0 spec/catalog/setup_spec.rb
heirloom-0.7.4 spec/catalog/setup_spec.rb
heirloom-0.7.3 spec/catalog/setup_spec.rb
heirloom-0.7.3rc2 spec/catalog/setup_spec.rb
heirloom-0.7.3rc1 spec/catalog/setup_spec.rb
heirloom-0.7.2 spec/catalog/setup_spec.rb
heirloom-0.7.2rc2 spec/catalog/setup_spec.rb