mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
11 lines
No EOL
492 B
JavaScript
11 lines
No EOL
492 B
JavaScript
/**
|
|
* Tests if RSS exists and is working
|
|
*/
|
|
/*globals CasperTest, casper */
|
|
CasperTest.begin('Ensure that RSS is available', 3, function suite(test) {
|
|
casper.thenOpen(url + 'rss/', function (response) {
|
|
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>');
|
|
});
|
|
}); |