summaryrefslogtreecommitdiff
path: root/spec/requests/api/branches_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-03-06 16:53:22 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-03-06 16:53:22 -0500
commitde944c914b2a780a5e968cc32ef64cddd2b82c9b (patch)
treedfef857b364ee0badb2b68ccf6e6a964a7f8df16 /spec/requests/api/branches_spec.rb
parent042b047fc87ba4f76178383f9b5738cfbb9eb16c (diff)
downloadgitlab-ce-de944c914b2a780a5e968cc32ef64cddd2b82c9b.tar.gz
Add traits for each access_level to ProjectMember factory
Diffstat (limited to 'spec/requests/api/branches_spec.rb')
-rw-r--r--spec/requests/api/branches_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/branches_spec.rb b/spec/requests/api/branches_spec.rb
index 36461e84c3a..55582aa53d2 100644
--- a/spec/requests/api/branches_spec.rb
+++ b/spec/requests/api/branches_spec.rb
@@ -7,8 +7,8 @@ describe API::API, api: true do
let(:user) { create(:user) }
let(:user2) { create(:user) }
let!(:project) { create(:project, creator_id: user.id) }
- let!(:master) { create(:project_member, user: user, project: project, access_level: ProjectMember::MASTER) }
- let!(:guest) { create(:project_member, user: user2, project: project, access_level: ProjectMember::GUEST) }
+ let!(:master) { create(:project_member, :master, user: user, project: project) }
+ let!(:guest) { create(:project_member, :guest, user: user2, project: project) }
let!(:branch_name) { 'feature' }
let!(:branch_sha) { '0b4bc9a49b562e85de7cc9e834518ea6828729b9' }