Sha256: 8f43d862c4330c75ebdaef12d1503029286b13aae1e59d598670927828768af0

Contents?: true

Size: 575 Bytes

Versions: 24

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'

describe Heirloom::Catalog::List do

  before do
    @config_stub = stub 'config'
    @sdb_mock = mock 'sdb'
    Heirloom::AWS::SimpleDB.should_receive(:new).
                            with(:config => @config_stub).
                            and_return @sdb_mock
    @list = Heirloom::Catalog::List.new :config => @config_stub
  end

  it "should list all heirlooms in the catalog" do
    @sdb_mock.should_receive(:select).
              with("SELECT * FROM heirloom").
              and_return 'result'
    @list.all.should == 'result'
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

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