Amire80 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/166976
Change subject: Fix ambiguous regexps, suggested by Rubocop
......................................................................
Fix ambiguous regexps, suggested by Rubocop
Change-Id: I00205d4fce56b2110c90ecfef1020bfb48cbd88b
---
M tests/browser/features/step_definitions/red_link_steps.rb
1 file changed, 3 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/76/166976/1
diff --git a/tests/browser/features/step_definitions/red_link_steps.rb
b/tests/browser/features/step_definitions/red_link_steps.rb
index 4af1d70..85175ec 100644
--- a/tests/browser/features/step_definitions/red_link_steps.rb
+++ b/tests/browser/features/step_definitions/red_link_steps.rb
@@ -41,7 +41,7 @@
page.language_filter_element.send_keys [:enter, "\n"]
page.uls_settings_apply_element.click
page.wait_until do
- @browser.url.match /setlang=#{code}/
+ @browser.url.match(/setlang=#{code}/)
end
end
end
@@ -79,11 +79,11 @@
end
Then(/^the name of the page should appear in the main title$/) do
- on(PageCreationPage).first_heading.should match /Red interlanguage link test/
+ on(PageCreationPage).first_heading.should match(/Red interlanguage link
test/)
end
Then(/^the name "(.+?)" should appear in the main title$/) do |target_title|
- on(PageCreationPage).first_heading.should match /#{target_title}/
+ on(PageCreationPage).first_heading.should match(/#{target_title}/)
end
Then(/^the name of the page should appear in the (.+) column$/) do
|column_type|
--
To view, visit https://gerrit.wikimedia.org/r/166976
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I00205d4fce56b2110c90ecfef1020bfb48cbd88b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits