/** * Tests archive page routing */ /*globals CasperTest, casper, url */ CasperTest.begin('Redirects page 1 request', 1, function suite(test) { casper.thenOpen(url + 'page/1/', function then() { test.assertEqual(casper.getCurrentUrl().indexOf('page/'), -1, 'Should be redirected to "/".'); }); }, true);