features/steps/notifications_steps.rb in flapjack-0.6.61 vs features/steps/notifications_steps.rb in flapjack-0.7.0
- old
+ new
@@ -64,10 +64,10 @@
'state' => 'critical',
'summary' => '100% packet loss',
'entity' => entity,
'check' => 'ping')
entity_check = Flapjack::Data::EntityCheck.for_entity_name(entity, 'ping', :redis => @redis)
- @app.send(:send_notification_messages, event, entity_check)
+ @app.send(:generate_notification_messages, event, entity_check)
end
Then /^an SMS notification for entity '([\w\.\-]+)' should be queued for the user$/ do |entity|
queue = ResqueSpec.peek('sms_notifications')
queue.select {|n| n[:args].first['event_id'] =~ /#{entity}:ping/ }.should_not be_empty