From 5bfaab8af958cce59cf68983e69f05c359f2dc39 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 14 Jul 2017 16:27:25 +0200 Subject: [PATCH] Improved test. --- test/unit/overview_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/overview_test.rb b/test/unit/overview_test.rb index 45cabd99f..145b64951 100644 --- a/test/unit/overview_test.rb +++ b/test/unit/overview_test.rb @@ -156,7 +156,7 @@ class OverviewTest < ActiveSupport::TestCase view_mode_default: 's', }, ) - assert_match(/^\d\d\d$/, overview.link) + assert_match(/^\d{1,3}$/, overview.link) overview.destroy! overview = Overview.create!(