Skip to content

Commit

Permalink
Fixing Ruby formatter. Fixes issue 6129
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Oct 21, 2013
1 parent 5fd112b commit 7d3fdc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ide/plugins/ruby-format/src/content/formats/ruby-wd-rspec.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ this.options = {
footer: " end\n" +
" \n" +
" def element_present?(how, what)\n" +
" @driver.find_element(how, what)\n" +
" ${receiver}.find_element(how, what)\n" +
" true\n" +
" rescue Selenium::WebDriver::Error::NoSuchElementError\n" +
" false\n" +
" end\n" +
" \n" +
" def alert_present?()\n" +
" @driver.switch_to.alert\n" +
" ${receiver}.switch_to.alert\n" +
" true\n" +
" rescue Selenium::WebDriver::Error::NoAlertPresentError\n" +
" false\n" +
Expand All @@ -351,7 +351,7 @@ this.options = {
" end\n" +
" \n" +
" def close_alert_and_get_its_text(how, what)\n" +
" alert = @driver.switch_to().alert()\n" +
" alert = ${receiver}.switch_to().alert()\n" +
" alert_text = alert.text\n" +
" if (@accept_next_alert) then\n" +
" alert.accept()\n" +
Expand Down
6 changes: 3 additions & 3 deletions ide/plugins/ruby-format/src/content/formats/ruby-wd.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,14 @@ this.options = {
footer: " end\n" +
" \n" +
" def element_present?(how, what)\n" +
" @driver.find_element(how, what)\n" +
" ${receiver}.find_element(how, what)\n" +
" true\n" +
" rescue Selenium::WebDriver::Error::NoSuchElementError\n" +
" false\n" +
" end\n" +
" \n" +
" def alert_present?()\n" +
" @driver.switch_to.alert\n" +
" ${receiver}.switch_to.alert\n" +
" true\n" +
" rescue Selenium::WebDriver::Error::NoAlertPresentError\n" +
" false\n" +
Expand All @@ -334,7 +334,7 @@ this.options = {
" end\n" +
" \n" +
" def close_alert_and_get_its_text(how, what)\n" +
" alert = @driver.switch_to().alert()\n" +
" alert = ${receiver}.switch_to().alert()\n" +
" alert_text = alert.text\n" +
" if (@accept_next_alert) then\n" +
" alert.accept()\n" +
Expand Down

0 comments on commit 7d3fdc4

Please sign in to comment.