Skip to content

Instantly share code, notes, and snippets.

// GENERATED: 2011-06-01 12:47:58 -0500
// This file is automatically generated by spade. To update run
// 'spade update'. To use this file, reference it in your HTML file. Base
// sure that your base URL is to the top level directory containing all of
// your files.
/*globals spade */
//@ begin boot
(function() {
// load spade itself
function pullUpdates() {
jQuery.ajax({
url: url,
dataType: 'json',
data: [],
success: function(data) {
groupedData = groupData(data);
groupedFilteredData = applyFilters(groupedData);
renderAlerts(groupedFilteredData);
setTimeout(pullUpdates, 30000);
@firebug
Scenario: Examine the assigned events
Given an event "Pings not responding" from the source "Test.srv" that is assigned
And I am logged in
When I go to the alerts index
And I wait until "div#assigned section.events" is visible
Then I should see "Pings not responding" within "div#assigned"
And I should not see "Pings not responding" in the assigned to me events section