Commit 357ad44a authored by Phil Hughes's avatar Phil Hughes

Fixed Rubocop errors

parent feeb4893
......@@ -27,7 +27,36 @@ describe 'New/edit merge request', feature: true, js: true do
end
it 'should update merge request' do
update_merge_request
click_button 'Assignee'
click_link user.name
page.find '.js-assignee-search' do
expect(page).to have_content user.name
end
click_button 'Milestone'
click_link milestone.title
page.find '.js-milestone-select' do
expect(page).to have_content milestone.title
end
click_button 'Labels'
click_link label.title
click_link label2.title
page.find '.js-label-select' do
expect(page).to have_content label2.title
end
click_button 'Save changes'
page.find '.issuable-sidebar' do
expect(page).to have_content user.name
expect(page).to have_content milestone.title
expect(page).to have_content label.title
expect(page).to have_content label2.title
end
end
end
......@@ -48,11 +77,6 @@ describe 'New/edit merge request', feature: true, js: true do
end
it 'should update merge request' do
update_merge_request
end
end
def update_merge_request
click_button 'Assignee'
click_link user.name
......@@ -84,4 +108,5 @@ describe 'New/edit merge request', feature: true, js: true do
expect(page).to have_content label2.title
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