Permalink
Browse files

Added test showing redirection from http host to https host works.

  • Loading branch information...
1 parent c17e120 commit f6d3b0b506f11e31567cf5aff4e891c9e551f227 @bnoguchi bnoguchi committed Jul 1, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/browser.navigation.test.js
@@ -300,6 +300,16 @@ module.exports = {
});
},
+ 'test .request redirecting from a full non-https uri to a https uri': function(done){
+ var browser = tobi.createBrowser(80, 'bit.ly')
+ browser.request('GET', 'http://bit.ly/jrs5ME', {}, function (res, $) {
+ res.should.have.status(200);
+ var githubBrowser = Browser.browsers['github.com'];
+ githubBrowser.jQuery('#slider .breadcrumb a').should.have.text('tobi');
+ done();
+ });
+ },
+
// [!] if this test doesn't pass, an uncaught ECONNREFUSED will be shown
'test .request() on deferred listen()': function(done){
var browser = tobi.createBrowser(appDeferred)

0 comments on commit f6d3b0b

Please sign in to comment.