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
context 'Plan' do
describe 'Close issue' do
let(:issue) do
Resource::Issue.fabricate_via_api! do |issue|
issue.title = 'Issue to be closed via pushing a commit'
end
Resource::Issue.fabricate_via_api!
end
let(:project) { issue.project }
let(:issue_id) { issue.api_response[:iid] }
before do
......@@ -39,7 +36,7 @@ module QA
push.commit_message = commit_message
push.new_branch = new_branch
push.file_content = commit_message
push.project = project
push.project = issue.project
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