         </html>
         """
 
-      brains.get "/app.js", (req, res)->
+      brains.get "/script/living/app.js", (req, res)->
         res.send """
         Sammy("#main", function(app) {
           app.get("#/", function(context) {


  describe "basic", ->
    before ->
      brains.get "/script/living", (req, res)->
        res.send """
        <html>
          <head>
            <script src="/jquery.js"></script>
            <script src="/sammy.js"></script>
            <script src="/app.js"></script>
          </head>
          <body>
            <div id="main">

        it "should execute route", ->
          assert.equal browser.text("#main"), "The Living Dead"
        it "should change location", ->
          assert.equal browser.location.href, "http://localhost:3003/script/living/#/dead"


    describe "live events", ->
      browser = new Browser()

      before (done)->
        browser.visit "http://localhost:3003/script/living/", ->
          browser.fill "Email", "armbiter@zombies"
          browser.fill "Password", "br41nz"
          browser.pressButton "Sign Me Up"
          browser.wait 500, done

      it "should change location", ->
        assert.equal browser.location.href, "http://localhost:3003/script/living/#/"
      it "should process event", ->
        assert.equal browser.document.title, "Signed up"

