diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-06-06 18:36:41 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-06-06 18:39:22 +0300 |
commit | bf6961cad85ab9a60f37f9b2974fb7bdd3975810 (patch) | |
tree | e0986bf3ce3256644e561fed8d1f571280c26fca /spec/models/forked_project_link_spec.rb | |
parent | d919f924bf32220237c389dc913093efead8928c (diff) |
Just let the user to create the namespace
Diffstat (limited to 'spec/models/forked_project_link_spec.rb')
-rw-r--r-- | spec/models/forked_project_link_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/forked_project_link_spec.rb b/spec/models/forked_project_link_spec.rb index 454550c9710..6e8d43f988c 100644 --- a/spec/models/forked_project_link_spec.rb +++ b/spec/models/forked_project_link_spec.rb @@ -2,8 +2,8 @@ require 'spec_helper' describe ForkedProjectLink, "add link on fork" do let(:project_from) { create(:project, :repository) } - let(:namespace) { create(:namespace) } - let(:user) { create(:user, namespace: namespace) } + let(:user) { create(:user) } + let(:namespace) { user.namespace } before do create(:project_member, :reporter, user: user, project: project_from) |