Skip to content

Commit 38d9c1c

Browse files
committed
Change String.match? to =~
Can't use match? on Ruby 2.2. Uncomment when Ruby 2.4 is used for all test platforms
1 parent 3cadf36 commit 38d9c1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/dummy/spec/support/selenium_logger.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
errors = []
1010

1111
page.driver.browser.manage.logs.get(:browser).each do |entry|
12-
next if entry.message.match?(/Download the React DevTools for a better development experience/)
12+
# can't use match? on Ruby 2.2. Uncomment when Ruby 2.4 is used for all test platforms
13+
# next if entry.message.match?(/Download the React DevTools for a better development experience/)
14+
next if entry.message =~ /Download the React DevTools for a better development experience/
1315

1416
log_only_list.include?(entry.level) ? puts(entry.message) : errors << entry.message
1517
end

0 commit comments

Comments
 (0)