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