diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-07-22 00:55:42 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-07-27 20:12:16 +0300 |
commit | bc0d8112490e2966ffb5775815cd333f10e420a0 (patch) | |
tree | 0e9fdddd77143e4ebb019308bae76a931287009e /spec/features/issuables | |
parent | fcc4ba16d5c59dd7c013c6894cf829892a9141c5 (diff) |
Use `empty_project` where possible in spec/features/issuables
(It wasn't possible.)
Diffstat (limited to 'spec/features/issuables')
-rw-r--r-- | spec/features/issuables/close_reopen_report_toggle_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/issuables/user_sees_sidebar_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/issuables/close_reopen_report_toggle_spec.rb b/spec/features/issuables/close_reopen_report_toggle_spec.rb index cf1f0624140..0e43eed8699 100644 --- a/spec/features/issuables/close_reopen_report_toggle_spec.rb +++ b/spec/features/issuables/close_reopen_report_toggle_spec.rb @@ -79,7 +79,7 @@ describe 'Issuables Close/Reopen/Report toggle' do end context 'on a merge request' do - let(:project) { create(:project) } + let(:project) { create(:project, :repository) } let(:issuable) { create(:merge_request, source_project: project) } before do @@ -96,7 +96,7 @@ describe 'Issuables Close/Reopen/Report toggle' do end context 'when user doesnt have permission to update' do - let(:cant_project) { create(:project) } + let(:cant_project) { create(:project, :repository) } let(:cant_issuable) { create(:merge_request, source_project: cant_project) } before do diff --git a/spec/features/issuables/user_sees_sidebar_spec.rb b/spec/features/issuables/user_sees_sidebar_spec.rb index 948d151a517..2bd1c8aab86 100644 --- a/spec/features/issuables/user_sees_sidebar_spec.rb +++ b/spec/features/issuables/user_sees_sidebar_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' describe 'Issue Sidebar on Mobile' do include MobileHelpers - let(:project) { create(:project, :public) } + let(:project) { create(:project, :public, :repository) } let(:merge_request) { create(:merge_request, source_project: project) } let(:issue) { create(:issue, project: project) } let!(:user) { create(:user)} |