spec/lib/flapjack/data/notification_spec.rb in flapjack-0.7.7 vs spec/lib/flapjack/data/notification_spec.rb in flapjack-0.7.8
- old
+ new
@@ -43,19 +43,21 @@
t = Time.now.to_i
event.should_receive(:id).and_return('example.com:ping')
event.should_receive(:state).and_return('ok')
event.should_receive(:summary).and_return('Shiny & happy')
+ event.should_receive(:details).and_return('Really Shiny & happy')
event.should_receive(:time).and_return(t)
event.should_receive(:duration).and_return(nil)
notification.contents.should == {'event_id' => 'example.com:ping',
'state' => 'ok',
'summary' => 'Shiny & happy',
+ 'details' => 'Really Shiny & happy',
'time' => t,
'duration' => nil,
'notification_type' => 'problem',
'max_notified_severity' => nil}
end
-end
\ No newline at end of file
+end