test/base/test_item_rep.rb in nanoc-3.4.2 vs test/base/test_item_rep.rb in nanoc-3.4.3

- old
+ new

@@ -457,11 +457,11 @@ raised = false begin rep.filter(:whatever) rescue => e raised = true - assert_match /(^can't modify frozen |^unable to modify frozen object$)/, e.message + assert_match(/(^can't modify frozen |^unable to modify frozen object$)/, e.message) end assert raised end def test_filter_should_freeze_content @@ -481,10 +481,10 @@ begin rep.filter(:erb) rep.filter(:whatever) rescue => e raised = true - assert_match /(^can't modify frozen |^unable to modify frozen object$)/, e.message + assert_match(/(^can't modify frozen |^unable to modify frozen object$)/, e.message) end assert raised end def test_raw_path_should_generate_dependency