summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-03-13 18:03:12 +0000
committerStan Hu <stanhu@gmail.com>2019-03-13 18:03:12 +0000
commitc048422fa23b988ecdb87858cd58766870347bbe (patch)
treec07a1507ff5192f911704fcc77026d7f4043dd0e /qa
parent42b7f53bb8c456e2a88f6abff1ea8fc5dc5c4b2e (diff)
parent9f05e97aad33a0cd70862f67101bdcb3fddc639a (diff)
downloadgitlab-ce-c048422fa23b988ecdb87858cd58766870347bbe.tar.gz
Merge branch 'update-rubocop' into 'master'
Update rubocop target ruby version See merge request gitlab-org/gitlab-ce!24804
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/web_ide/edit.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/qa/qa/page/project/web_ide/edit.rb b/qa/qa/page/project/web_ide/edit.rb
index 2b6c01888d5..ff7cc04e352 100644
--- a/qa/qa/page/project/web_ide/edit.rb
+++ b/qa/qa/page/project/web_ide/edit.rb
@@ -43,11 +43,9 @@ module QA
def create_new_file_from_template(file_name, template)
click_element :new_file
within_element(:template_list) do
- begin
- click_on file_name
- rescue Capybara::ElementNotFound
- raise ElementNotFound, %Q(Couldn't find file template named "#{file_name}". Please confirm that it is a valid option.)
- end
+ click_on file_name
+ rescue Capybara::ElementNotFound
+ raise ElementNotFound, %Q(Couldn't find file template named "#{file_name}". Please confirm that it is a valid option.)
end
wait(reload: false) do