public function test_should_export_published_post_type_to_plural_folder()
 {
     register_post_type('widget', array('labels' => array('name' => 'Widgets')));
     $id = $this->factory->post->create(array('post_type' => 'widget'));
     $post = new WordPress_GitHub_Sync_Post($id, $this->api);
     $this->assertEquals('_widgets/', $post->github_directory());
 }
 public function test_should_return_correct_directory()
 {
     $post = new WordPress_GitHub_Sync_Post($this->id);
     $this->assertEquals('_posts/', $post->github_directory());
 }