Sha256: 7955e4240aae97ad10c16f361e36c380a3eb7b01940ffa7009713c84ec7882a3
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
require 'spec_helper' describe AwsAlertMonitor::Event do let(:event) do data = '{ "foo": "bar", "Message": "{ \"a\": \"b\" }", "Subject": "foo subject"}' AwsAlertMonitor::Event.new data end describe 'raw_data' do it 'provides the raw parsed data' do event.raw_data.should == { 'foo' => 'bar', 'Message' => '{ "a": "b" }', 'Subject' => 'foo subject' } end end describe 'subject' do it 'provides the subject' do event.subject.should == 'foo subject' end end describe 'message_data' do it 'provides the message data' do event.message_data.should == { 'a' => 'b' } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-alert-monitor-0.1.0 | spec/event_spec.rb |
aws-alert-monitor-0.0.5 | spec/event_spec.rb |