Skip to content

Commit

Permalink
How member is auto joined membership count in clan should be equals t…
Browse files Browse the repository at this point in the history
…wo, one for the owner and another for the new member
  • Loading branch information
Arthur Nogueira Gonçalves committed Aug 24, 2021
1 parent 8b529dc commit 6fc9ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/membership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ var _ = Describe("Membership Model", func() {

dbClan, err := GetClanByID(testDb, clan.ID)
Expect(err).NotTo(HaveOccurred())
Expect(dbClan.MembershipCount).To(Equal(1))
Expect(dbClan.MembershipCount).To(Equal(2))
})

It("Should approve it automatically if requestor is the player, clan.AllowApplication=true and clan.AutoJoin=true", func() {
Expand Down

0 comments on commit 6fc9ed1

Please sign in to comment.