diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-01-26 01:10:32 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-01-26 01:10:32 +0300 |
commit | 2fe13fbc4b1012778e5cd36f676b2ee51c5caaa1 (patch) | |
tree | 9eff1aaf58e681507dfdbe5a2bdb25ce7516fc58 /spec/helpers/submodule_helper_spec.rb | |
parent | d55839120e92be48b30d248ce9d72a19be038c79 (diff) |
Use `:empty_project` where possible in helper specs
Diffstat (limited to 'spec/helpers/submodule_helper_spec.rb')
-rw-r--r-- | spec/helpers/submodule_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/submodule_helper_spec.rb b/spec/helpers/submodule_helper_spec.rb index 37ac6a2699d..4da1569e59f 100644 --- a/spec/helpers/submodule_helper_spec.rb +++ b/spec/helpers/submodule_helper_spec.rb @@ -116,7 +116,7 @@ describe SubmoduleHelper do context 'submodules with relative links' do let(:group) { create(:group, name: "Master Project", path: "master-project") } - let(:project) { create(:project, group: group) } + let(:project) { create(:empty_project, group: group) } let(:commit_id) { sample_commit[:id] } before do @@ -145,7 +145,7 @@ describe SubmoduleHelper do context 'personal project' do let(:user) { create(:user) } - let(:project) { create(:project, namespace: user.namespace) } + let(:project) { create(:empty_project, namespace: user.namespace) } it 'one level down with personal project' do result = relative_self_links('../test.git', commit_id) |