diff options
author | Rémy Coutable <remy@rymai.me> | 2017-04-03 19:53:44 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-03 19:54:48 +0300 |
commit | bf69e6291d7c7029c18f21a65abc2579e1825cb0 (patch) | |
tree | a9a229f6e08453afb66f365808ba922918a62427 /spec/requests/api/members_spec.rb | |
parent | 5388bb1cca501442be05ddf929fae7d1bfcbd1f7 (diff) |
Ensure user has a unique username otherwise `user10` would match `user1`
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api/members_spec.rb')
-rw-r--r-- | spec/requests/api/members_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/members_spec.rb b/spec/requests/api/members_spec.rb index 2d37d026a39..84dca51801f 100644 --- a/spec/requests/api/members_spec.rb +++ b/spec/requests/api/members_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe API::Members, api: true do include ApiHelpers - let(:master) { create(:user) } + let(:master) { create(:user, username: 'master_user') } let(:developer) { create(:user) } let(:access_requester) { create(:user) } let(:stranger) { create(:user) } |