mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +03:00
cfe272e175
closes #1373 - Note that the tests fail if you run them pre #1363, thus future proofing us from this happening again. - Added submodule handling to travis - Added a new test for each of the home and post pages
10 lines
369 B
JavaScript
10 lines
369 B
JavaScript
/**
|
|
* Tests archive page routing
|
|
*/
|
|
|
|
/*globals CasperTest, casper, __utils__, url, testPost, falseUser, email */
|
|
CasperTest.begin('Redirects page 1 request', 1, function suite(test) {
|
|
casper.thenOpen(url + 'page/1/', function then(response) {
|
|
test.assertEqual(casper.getCurrentUrl().indexOf('page/'), -1, 'Should be redirected to "/".');
|
|
});
|
|
}, true); |