test/helpers/test_blogging.rb in nanoc-4.8.5 vs test/helpers/test_blogging.rb in nanoc-4.8.6

- old
+ new

@@ -310,27 +310,15 @@ # Check # TODO: Use xpath matchers for more specific test result = atom_feed # Still should keep feed level author - assert_match( - /#{Regexp.escape('<name>Denis Defreyne</name>')}/, #' - result, - ) - assert_match( - /#{Regexp.escape('<uri>http://stoneship.org/</uri>')}/, #' - result, - ) + assert_includes(result, '<name>Denis Defreyne</name>') + assert_includes(result, '<uri>http://stoneship.org/</uri>') # Overrides on specific items - assert_match( - /#{Regexp.escape('<name>Don Alias</name>')}/, #' - result, - ) - assert_match( - /#{Regexp.escape('<uri>http://don.example.com/</uri>')}/, #' - result, - ) + assert_includes(result, '<name>Don Alias</name>') + assert_includes(result, '<uri>http://don.example.com/</uri>') end end def test_atom_feed_without_author_uri if_have 'builder' do