mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
778e626f85
issue #1434 - This is a hack until we can get a PR merged into casperjs
10 lines
No EOL
466 B
JavaScript
10 lines
No EOL
466 B
JavaScript
/**
|
|
* Tests if RSS exists and is working
|
|
*/
|
|
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>');
|
|
});
|
|
}, true); |