Sha256: 798afa7ad301887d2e3060ee64078b36edd1b30d017a48429f1ad07f9ea58ea5
Contents?: true
Size: 860 Bytes
Versions: 3
Compression:
Stored size: 860 Bytes
Contents
require 'spec_helper' describe Heirloom do before do @config_mock = double 'config' @logger_mock = double 'logger' @config_mock.should_receive(:logger).and_return(@logger_mock) @updater = Heirloom::Updater.new :config => @config_mock, :name => 'tim', :id => '123' end it "should test an attribute is updated" do sdb_mock = mock 'sdb mock' @logger_mock.should_receive(:info) Heirloom::AWS::SimpleDB.should_receive(:new). with(:config => @config_mock). and_return sdb_mock sdb_mock.should_receive(:put_attributes). with('tim', '123', { 'attr' => 'val' }, { :replace => 'attr' }) @updater.update :attribute => 'attr', :value => 'val' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.3.1 | spec/archive/updater_spec.rb |
heirloom-0.3.0 | spec/archive/updater_spec.rb |
heirloom-0.3.0.rc1 | spec/archive/updater_spec.rb |