Commit 403d5d6f authored by Dan Davison's avatar Dan Davison

Merge branch 'simplify-and-shorten-test-3' into 'master'

Simplify and shorten qa test

See merge request gitlab-org/gitlab!23077
parents f016c504 72d8dc97
...@@ -4,12 +4,9 @@ module QA ...@@ -4,12 +4,9 @@ module QA
context 'Plan' do context 'Plan' do
describe 'Close issue' do describe 'Close issue' do
let(:issue) do let(:issue) do
Resource::Issue.fabricate_via_api! do |issue| Resource::Issue.fabricate_via_api!
issue.title = 'Issue to be closed via pushing a commit'
end
end end
let(:project) { issue.project }
let(:issue_id) { issue.api_response[:iid] } let(:issue_id) { issue.api_response[:iid] }
before do before do
...@@ -39,7 +36,7 @@ module QA ...@@ -39,7 +36,7 @@ module QA
push.commit_message = commit_message push.commit_message = commit_message
push.new_branch = new_branch push.new_branch = new_branch
push.file_content = commit_message push.file_content = commit_message
push.project = project push.project = issue.project
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment