diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-01-27 02:51:57 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-01-27 02:52:10 +0300 |
commit | 9a31ecbef23843179d4896016e1b8ae310d96e68 (patch) | |
tree | 20a1bafd93639c444386a941f9270edac7905598 /spec/requests/api/branches_spec.rb | |
parent | f27721e842b608f4a63bd0bc59ce77175ae530ca (diff) |
Use `:empty_project` where possible in request specs
Diffstat (limited to 'spec/requests/api/branches_spec.rb')
-rw-r--r-- | spec/requests/api/branches_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/branches_spec.rb b/spec/requests/api/branches_spec.rb index 2878e0cb59b..5a3ffc284f2 100644 --- a/spec/requests/api/branches_spec.rb +++ b/spec/requests/api/branches_spec.rb @@ -6,7 +6,7 @@ describe API::Branches, api: true do let(:user) { create(:user) } let(:user2) { create(:user) } - let!(:project) { create(:project, creator_id: user.id) } + let!(:project) { create(:project, :repository, creator: user) } let!(:master) { create(:project_member, :master, user: user, project: project) } let!(:guest) { create(:project_member, :guest, user: user2, project: project) } let!(:branch_name) { 'feature' } |