4465: add trailing /? to regexes
authorTim Pierce <twp@curoverse.com>
Thu, 4 Dec 2014 16:47:22 +0000 (11:47 -0500)
committerTim Pierce <twp@curoverse.com>
Thu, 4 Dec 2014 16:47:22 +0000 (11:47 -0500)
Per code review @ #4465-7

apps/workbench/test/integration/report_issue_test.rb

index fcbf4e7f1c043639664c43d977b1b7dda04ebc12..3af7f922a31e2d93b2bf5e27591bdda9768d353f 100644 (file)
@@ -37,8 +37,8 @@ class ReportIssueTest < ActionDispatch::IntegrationTest
       assert page.has_no_text?('Describe the problem?'), 'Found text - Describe the problem'
       assert page.has_button?('Close'), 'No button - Close'
       assert page.has_no_button?('Send problem report'), 'Found button - Send problem report'
-      api_version_rgx = %r!^https://github.com/curoverse/arvados/tree/[0-9a-f]+/services/api$!
-      wb_version_rgx = %r!^https://github.com/curoverse/arvados/tree/[0-9a-f]+/apps/workbench$!
+      api_version_rgx = %r!^https://github.com/curoverse/arvados/tree/[0-9a-f]+/services/api/?$!
+      wb_version_rgx = %r!^https://github.com/curoverse/arvados/tree/[0-9a-f]+/apps/workbench/?$!
       assert_not_empty(all("a").select { |a| a[:href] =~ wb_version_rgx })
       assert_not_empty(all("a").select { |a| a[:href] =~ api_version_rgx })
       click_button 'Close'