Sha256: cc659dc6912a2ce2790be7e48f10af9083c77baf1f5c6758c76c4ff85836c488
Contents?: true
Size: 569 Bytes
Versions: 6
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' describe AwsAlertMonitor::AWS::SES do before do @ses_mock = mock 'ses' @ses = AwsAlertMonitor::AWS::SES.new end it "should call send_email with the given args" do AWS::SimpleEmailService::Client.stub :new => @ses_mock @ses_mock.should_receive(:send_email). with :source => 'src', :destination => 'dest', :message => 'msg' @ses.send_email :source => 'src', :destination => 'dest', :message => 'msg' end end
Version data entries
6 entries across 6 versions & 1 rubygems