Skip to content

Commit

Permalink
Removed the create a new user function call from groups, as it was no…
Browse files Browse the repository at this point in the history
…w using the correct user to look up the leader
  • Loading branch information
crookedneighbor committed Mar 5, 2015
1 parent ab27dd4 commit e8be152
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions test/api.mocha.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,15 @@ describe "API", ->
describe "Groups", ->
group = undefined
before (done) ->
registerNewUser ->
request.post(baseURL + "/groups").send(
name: "TestGroup"
type: "party"
).end (res) ->
expectCode res, 200
group = res.body
expect(group.members.length).to.be 1
expect(group.leader).to.be user._id
done()
request.post(baseURL + "/groups").send(
name: "TestGroup"
type: "party"
).end (res) ->
expectCode res, 200
group = res.body
expect(group.members.length).to.be 1
expect(group.leader).to.be user._id
done()

describe "Challenges", ->
challenge = undefined
Expand Down

0 comments on commit e8be152

Please sign in to comment.