If wp:post_name was empty in wordpress.xml it would correctly use the title which wasn't turned correctly into a slug, not handling forward slashes.
I've added a sort-of test case using an example wordpress.xml from an example blog I made, and modified it so one post would be missing the post name. None of the other migrators had any test cases, so I kind of rode in blind creating this one. If the test seems like overkill feel free to drop the commit tombell/jekyll@988a7a8
Turn the title into a slug
This allows the title to be correctly used as a filename.
Add test case for wordpressdotcom migrator
* Add hpricot to dev dependencies so we can use the migrator
* Add example wordpress.xml file for testing with
* Add `fixtures_dir` method to helper file
* Add test to see if 2 posts and 1 page are imported
I would prefer that we use Nokogiri instead of Hpricot, it's more modern and well maintained, otherwise this is looking good.
This pull request is some what redundant given the newer migrator->importer pull request. I'll work on swapping Hpricot to Nokogiri in that pull request instead.