 
   it "should not signup a new shop if provided data is invalid", (done) ->
     request.
-    post("/shop/signup").
+    post(apiPreffix + '/shop/signup').
     send({name: '', email: '', password: ''}).
     end (err, res) ->
       res.should.have.status 422


  it "should mark an existant email for a shop as existant", (done) ->
    request.
    get("/shop/emailexists?email=myshop@email.com").
    end (err, res) ->
      res.should.have.status 200
      done()

  it "should mark a non existant email for a shop as non existant", (done) ->
    request.
    get("/shop/emailexists?email=mynonexistantshop@email.com").
    end (err, res) ->
      res.should.have.status 200
      res.text.should.include 'False'

Shop     = mongoose.model("Shop")

request = request('http://localhost:3000');
apiPreffix = '/api/v1'

describe "General", ->
  it "should be listening on port 3000", (done) ->
