diff options
author | Rémy Coutable <remy@rymai.me> | 2017-04-24 17:57:31 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-24 17:57:31 +0300 |
commit | 8e6dabb0118a8245f42974f9e92fe53ccb1c43f2 (patch) | |
tree | c92d7f9c4ce8804e4373f638df8c76b2c4458fd4 /spec/features/issues_spec.rb | |
parent | 7e335d20248c4dc4788a0eb0b7ef87a0d5cada6c (diff) | |
parent | aef345024f72ca8d4b57a65b149d018a50219a87 (diff) |
Merge branch 'rs-empty-project-features' into 'master'
Use `:empty_project` where possible in top-level feature specs
See merge request !10836
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 55eca187f6c..b43bf7d354e 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 @@ -610,7 +603,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 |