Validate uniqueness of project/repositories memberships. Closes #358
authorPawel Pierzchala <pawelpierzchala@gmail.com>
Thu, 7 Nov 2013 14:14:45 +0000 (15:14 +0100)
committerPawel Pierzchala <pawelpierzchala@gmail.com>
Fri, 8 Nov 2013 09:02:01 +0000 (10:02 +0100)
commit7e0cb87c283238cf5798e4ded0fdd28ac0661c73
tree78d8e7bd924fafb67bdb856e4a302e0ceb9f7deb
parentac63e196b4f178105898b212d71a414b819ad9c7
Validate uniqueness of project/repositories memberships. Closes #358

Controller tests were assuming situation that the repositories/
projects had no member by default, while they are created with one
member: the owner. The tests were updated to align with the new
validation.
app/models/content_membership.rb
test/functional/project_memberships_controller_test.rb
test/functional/repository_memberships_controller_test.rb
test/unit/content_membership.rb [new file with mode: 0644]