diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-03-28 17:13:16 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-04-20 17:30:55 -0400 |
commit | aef345024f72ca8d4b57a65b149d018a50219a87 (patch) | |
tree | d51c393848fbf30c98fb59f3fc9dab6332d96b11 /spec/features/issues_spec.rb | |
parent | b8b6ab6b91c05350e6fc50f21273ca18237af858 (diff) | |
download | gitlab-ce-aef345024f72ca8d4b57a65b149d018a50219a87.tar.gz |
Use `:empty_project` where possible in top-level feature specsrs-empty-project-features
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 362d167befa..219068659b7 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -6,20 +6,13 @@ describe 'Issues', feature: true do include SortingHelper include WaitForAjax - let(:project) { create(:project, :public) } + let(:project) { create(:empty_project, :public) } before do login_as :user user2 = create(:user) project.team << [[@user, user2], :developer] - - project.repository.create_file( - @user, - '.gitlab/issue_templates/bug.md', - 'this is a test "bug" template', - message: 'added issue template', - branch_name: 'master') end describe 'Edit issue' do @@ -378,7 +371,7 @@ describe 'Issues', feature: true do end describe 'when I want to reset my incoming email token' do - let(:project1) { create(:project, namespace: @user.namespace) } + let(:project1) { create(:empty_project, namespace: @user.namespace) } let!(:issue) { create(:issue, project: project1) } before do @@ -609,7 +602,16 @@ describe 'Issues', feature: true do end context 'form filled by URL parameters' do + let(:project) { create(:project, :public, :repository) } + before do + project.repository.create_file( + @user, + '.gitlab/issue_templates/bug.md', + 'this is a test "bug" template', + message: 'added issue template', + branch_name: 'master') + visit new_namespace_project_issue_path(project.namespace, project, issuable_template: 'bug') end |