Tests for invitation.rb (#1938)
Tests for invitation.rb (#1938)

* create spec file and a test for invitation.rb

* fix syntax

* fix defined variables for stub

* fix _ to .

* make where return an array

* return an empty array

* fix logic on test

* write tests for accept invite when the user doesnt belong to a team

* fix spelling

* change invitee and inviter

* fix spec for when the team has open spots

* add tests for when the user already belonged to a team

* switch _ to .

* write test for removing users sent invites for assignment

* correct syntax of and_return

* check to see the correct invitations where deleted

* add tests for updating the users teamss

* correct creation of team user

* have db return id not object

* add stubs for updated teams

* add stub for the mapping

* fix syntax

* use right stub on right object

* remove comments that i used to help me write the code

* add spec test for remove waitlists

* to rollback

* fix merge conflict

* add end

* remove the id for team

* add builder for signed_up_team

* fix syntax

* fix the syntax

* check to make sure topic is having waitlisted removed

* change puts to place

* delete second puts
expertiza/expertiza,expertiza/expertiza,expertiza/expertiza,expertiza/expertiza