Sha256: b3a59f6c4e4f421eb06077bfa3bb1b84079af9ed1b6d329b08a36ecff6a20760
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
require 'spec_helper' describe AwsAlertMonitor::Events::Unknown do let(:message) { '{"foo": "bar"}' } let(:event) { AwsAlertMonitor::Events::Unknown.new message } describe 'body' do it 'returns the body' do data = "received an alert: \n\n " data << JSON.parse(message).to_s event.body.should == data end end describe 'subject' do it 'returns the subject' do event.subject.should == 'Alert: unknown type' end end describe 'type' do it 'returns the type' do event.type.should == 'unknown' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-alert-monitor-0.1.0 | spec/events/unknown_spec.rb |
aws-alert-monitor-0.0.5 | spec/events/unknown_spec.rb |