mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
fd60a12469
closes #1466 - added status code for error object - added test for frontend errors
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>');
|
|
});
|
|
}); |