 
     "can open a URL on localhost":
       topic: t (page) ->
-        page.open "http://127.0.0.1:23765/", (status) =>
+        page.open "http://127.0.0.1:#{app.address().port}/", (status) =>
           @callback null, page, status
 
       "and succeed": (err, page, status) ->

            fs.unlink fileName
    
    teardown: (page, ph) ->
      ph.exit()

    </html>
  """

app.listen()

describe "Pages"
  "A Phantom page":
