diff options
author | Stan Hu <stanhu@gmail.com> | 2018-04-17 03:19:08 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-04-17 16:23:42 +0300 |
commit | fef7f0ed928d5eddeab4685855ed454d352a8ea8 (patch) | |
tree | 1236cc3752f35a14e7711269a514743872b216a0 /spec/features/projects/files | |
parent | 2be8b01b5d34884475d3061108efa8bba8798a21 (diff) |
Remove ambiguity when forking a project to a user's namespace
Diffstat (limited to 'spec/features/projects/files')
-rw-r--r-- | spec/features/projects/files/user_uploads_files_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/files/user_uploads_files_spec.rb b/spec/features/projects/files/user_uploads_files_spec.rb index 7a1e3a8bcce..8b212faa29d 100644 --- a/spec/features/projects/files/user_uploads_files_spec.rb +++ b/spec/features/projects/files/user_uploads_files_spec.rb @@ -7,11 +7,11 @@ describe 'Projects > Files > User uploads files' do "You're not allowed to make changes to this project directly. "\ "A fork of this project has been created that you can make changes in, so you can submit a merge request." end - let(:project) { create(:project, :repository, name: 'Shop') } + let(:user) { create(:user) } + let(:project) { create(:project, :repository, name: 'Shop', creator: user) } let(:project2) { create(:project, :repository, name: 'Another Project', path: 'another-project') } let(:project_tree_path_root_ref) { project_tree_path(project, project.repository.root_ref) } let(:project2_tree_path_root_ref) { project_tree_path(project2, project2.repository.root_ref) } - let(:user) { project.creator } before do project.add_master(user) |