2013-09-16 06:11:17 -05:00
|
|
|
/**
|
|
|
|
* Tests if RSS exists and is working
|
|
|
|
*/
|
2013-11-15 09:27:06 -05:00
|
|
|
/*globals CasperTest, casper */
|
2013-10-07 20:39:33 -05:00
|
|
|
CasperTest.begin('Ensure that RSS is available', 3, function suite(test) {
|
|
|
|
casper.thenOpen(url + 'rss/', function (response) {
|
2013-09-16 06:11:17 -05:00
|
|
|
test.assertEqual(response.status, 200, 'Response status should be 200.');
|
|
|
|
test.assert(this.getPageContent().indexOf('<rss') >= 0, 'Feed should contain <rss');
|
|
|
|
test.assert(this.getPageContent().indexOf('</rss>') >= 0, 'Feed should contain </rss>');
|
|
|
|
});
|
2013-11-15 09:27:06 -05:00
|
|
|
});
|