Sha256: 80b0c8276d46623f3024ea14044b65fb37a8e0a08485007a3ca3082143b9c8b5
Contents?: true
Size: 893 Bytes
Versions: 5
Compression:
Stored size: 893 Bytes
Contents
require 'spec_helper' describe Heirloom do before do @config_double = double 'config' @logger_double = double 'logger' @config_double.should_receive(:logger).and_return(@logger_double) @updater = Heirloom::Updater.new :config => @config_double, :name => 'tim', :id => '123' end it "should test an attribute is updated" do sdb_double = double 'sdb mock' @logger_double.should_receive(:info) Heirloom::AWS::SimpleDB.should_receive(:new). with(:config => @config_double). and_return sdb_double sdb_double.should_receive(:put_attributes). with('heirloom_tim', '123', { 'attr' => 'val' }, { :replace => 'attr' }) @updater.update :attribute => 'attr', :value => 'val' end end
Version data entries
5 entries across 5 versions & 1 rubygems