[Rt-commit] rt branch, 4.2/mojo-text, created. rt-4.2.13-42-g9f5b861
Alex Vandiver
alexmv at bestpractical.com
Mon Aug 1 02:12:17 EDT 2016
The branch, 4.2/mojo-text has been created
at 9f5b8613d97b73bf5e0b3a0980cac3addd36b4a7 (commit)
- Log -----------------------------------------------------------------
commit 9f5b8613d97b73bf5e0b3a0980cac3addd36b4a7
Author: Alex Vandiver <alex at chmrr.net>
Date: Fri Jul 29 17:47:28 2016 -0700
Fix tests for Mojolicious 7.0
Mojolicious 7.0 "removed support for smart whitespace trimming from
all_text and text methods in Mojo::DOM." This causes tests to fail.
Adjusts tests to work in both versions, via a regex.
diff --git a/t/web/cf_groupings.t b/t/web/cf_groupings.t
index 0a40f71..03ca60a 100644
--- a/t/web/cf_groupings.t
+++ b/t/web/cf_groupings.t
@@ -65,7 +65,7 @@ my $id = $m->get_ticket_id;
foreach my $grouping (@groupings) {
my $row_id = "CF-$CF{$grouping}-ShowRow";
is $dom->find(qq{#$row_id})->size, 1, "CF on the page";
- is $dom->at(qq{#$row_id})->all_text, "Test$grouping: Test${grouping}Value", "value is set";
+ like $dom->at(qq{#$row_id})->all_text, qr/Test$grouping:\s*Test${grouping}Value/, "value is set";
ok $dom->at(qq{$location{$grouping} #$row_id}), "CF is in the right place";
}
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list