{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/35035512","id":35035512,"diff_hunk":"@@ -290,6 +290,22 @@ local function expect(contents)\n   return eq(dedent(contents), curbuf_contents())\n end\n \n+local function rmdir(path)\n+  if lfs.attributes(path, 'mode') ~= 'directory' then\n+    return nil\n+  end\n+  for file in lfs.dir(path) do\n+    if file == '.' or file == '..' then\n+      goto continue\n+    end\n+    if not os.remove(path..'/'..file) then","path":"test/functional/helpers.lua","position":12,"original_position":12,"commit_id":"bed1908c5bdac649341c857f8cc6ace5374f84cb","original_commit_id":"bed1908c5bdac649341c857f8cc6ace5374f84cb","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"body":"Either works for me, but it should probably throw an error so that the test fails.","created_at":"2015-07-20T19:46:32Z","updated_at":"2015-07-20T19:46:32Z","html_url":"https://github.com/neovim/neovim/pull/3056#discussion_r35035512","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/3056","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/35035512"},"html":{"href":"https://github.com/neovim/neovim/pull/3056#discussion_r35035512"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3056"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/3056","id":40361530,"html_url":"https://github.com/neovim/neovim/pull/3056","diff_url":"https://github.com/neovim/neovim/pull/3056.diff","patch_url":"https://github.com/neovim/neovim/pull/3056.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3056","number":3056,"state":"open","locked":false,"title":"[RFC] Test: fix functional/ex_cmds/recover_spec.lua","user":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"body":"Commit 1: add `helpers.rmdir()`\r\nCommit 2: fix bug in `test/functional/ex_cmds/recover_spec.lua` that lead to a stray directory","created_at":"2015-07-20T15:04:51Z","updated_at":"2015-07-20T19:46:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"942a1befed53b2c285532a7eca1ef867b38865f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/3056/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/3056/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3056/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/bed1908c5bdac649341c857f8cc6ace5374f84cb","head":{"label":"mhinz:test/recover_spec","ref":"test/recover_spec","sha":"bed1908c5bdac649341c857f8cc6ace5374f84cb","user":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"repo":{"id":33410656,"name":"neovim","full_name":"mhinz/neovim","owner":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhinz/neovim","description":"vim out of the box","fork":true,"url":"https://api.github.com/repos/mhinz/neovim","forks_url":"https://api.github.com/repos/mhinz/neovim/forks","keys_url":"https://api.github.com/repos/mhinz/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhinz/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhinz/neovim/teams","hooks_url":"https://api.github.com/repos/mhinz/neovim/hooks","issue_events_url":"https://api.github.com/repos/mhinz/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/mhinz/neovim/events","assignees_url":"https://api.github.com/repos/mhinz/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/mhinz/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/mhinz/neovim/tags","blobs_url":"https://api.github.com/repos/mhinz/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhinz/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhinz/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhinz/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhinz/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/mhinz/neovim/languages","stargazers_url":"https://api.github.com/repos/mhinz/neovim/stargazers","contributors_url":"https://api.github.com/repos/mhinz/neovim/contributors","subscribers_url":"https://api.github.com/repos/mhinz/neovim/subscribers","subscription_url":"https://api.github.com/repos/mhinz/neovim/subscription","commits_url":"https://api.github.com/repos/mhinz/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhinz/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhinz/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhinz/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhinz/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/mhinz/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhinz/neovim/merges","archive_url":"https://api.github.com/repos/mhinz/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhinz/neovim/downloads","issues_url":"https://api.github.com/repos/mhinz/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/mhinz/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/mhinz/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/mhinz/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhinz/neovim/labels{/name}","releases_url":"https://api.github.com/repos/mhinz/neovim/releases{/id}","created_at":"2015-04-04T15:45:31Z","updated_at":"2015-04-04T15:45:37Z","pushed_at":"2015-07-20T16:21:17Z","git_url":"git://github.com/mhinz/neovim.git","ssh_url":"git@github.com:mhinz/neovim.git","clone_url":"https://github.com/mhinz/neovim.git","svn_url":"https://github.com/mhinz/neovim","homepage":"http://neovim.org","size":32380,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neovim:master","ref":"master","sha":"b4a5871809d14c9c0faa87a7a80cee8dcccff749","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"ambitious Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","created_at":"2014-01-31T13:39:22Z","updated_at":"2015-07-20T16:49:06Z","pushed_at":"2015-07-20T16:19:42Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":76727,"stargazers_count":14244,"watchers_count":14244,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":978,"mirror_url":null,"open_issues_count":547,"forks":978,"open_issues":547,"watchers":14244,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3056"},"html":{"href":"https://github.com/neovim/neovim/pull/3056"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/3056"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/3056/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3056/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3056/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/bed1908c5bdac649341c857f8cc6ace5374f84cb"}}}}