{"action":"created","comment":{"url":"https://api.github.com/repos/gollum/adapter_specs/pulls/comments/44527275","id":44527275,"diff_hunk":"@@ -0,0 +1,157 @@\n+require 'spec_helper'\n+require 'rspec/expectations'\n+\n+RSpec::Matchers.define :a_blob_named do |expected|\n+  match do |actual|\n+    actual.is_a?(Gollum::Git::Blob) && actual.name == expected\n+  end\n+end\n+\n+describe Gollum::Git::Repo do\n+\n+  after(:each) do\n+    if parent_commit != repo.head.commit\n+      repo.update_ref(repo.head.name, parent_commit.id)\n+    end\n+  end\n+\n+  let(:repo) { Gollum::Git::Repo.new(fixture('dot_bare_git'), :is_bare => true) }\n+\n+  let(:index) do\n+    repo.index.read_tree(repo.head.commit.tree.id)\n+    repo.index\n+  end\n+\n+  let(:actor) { Gollum::Git::Actor.new(\"Tom Werner\", \"tom@example.com\") }\n+\n+  let(:message) { 'Test commit' }\n+\n+  let(:parent_commit) { repo.head.commit }\n+\n+  def commit_index\n+    index.commit(message, [parent_commit], actor, nil, repo.head.name)\n+  end\n+\n+  describe \"#head#commit\" do\n+\n+    context \"after committing\" do\n+\n+      before(:each) do\n+        index.add('Add.txt', 'Some data')\n+        commit_index","path":"spec/gollum_git_repo_modification_spec.rb","position":41,"original_position":41,"commit_id":"08b8ca58e28bca60d887f499d46afa0362aedf48","original_commit_id":"08b8ca58e28bca60d887f499d46afa0362aedf48","user":{"login":"dometto","id":147111,"avatar_url":"https://avatars.githubusercontent.com/u/147111?v=3","gravatar_id":"","url":"https://api.github.com/users/dometto","html_url":"https://github.com/dometto","followers_url":"https://api.github.com/users/dometto/followers","following_url":"https://api.github.com/users/dometto/following{/other_user}","gists_url":"https://api.github.com/users/dometto/gists{/gist_id}","starred_url":"https://api.github.com/users/dometto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dometto/subscriptions","organizations_url":"https://api.github.com/users/dometto/orgs","repos_url":"https://api.github.com/users/dometto/repos","events_url":"https://api.github.com/users/dometto/events{/privacy}","received_events_url":"https://api.github.com/users/dometto/received_events","type":"User","site_admin":false},"body":"I think having two spec suits (Rspec and Test::Unit) in gollum-lib would \ncomplicate things a bit too much. Best case scenario would be to have \nall the gollum-lib tests in Rspec and then include the adapter tests, \nbut that's probably not going to ever happen. :-) So I think we should \nstick with the poor man's interface for now, and just copy some of the \nrepo-setup code from the gollum-lib test helpers. See \nhttps://github.com/gollum/gollum-lib/blob/master/test/helper.rb#L45-L66\n","created_at":"2015-11-11T12:27:41Z","updated_at":"2015-11-11T12:27:41Z","html_url":"https://github.com/gollum/adapter_specs/pull/4#discussion_r44527275","pull_request_url":"https://api.github.com/repos/gollum/adapter_specs/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/gollum/adapter_specs/pulls/comments/44527275"},"html":{"href":"https://github.com/gollum/adapter_specs/pull/4#discussion_r44527275"},"pull_request":{"href":"https://api.github.com/repos/gollum/adapter_specs/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/gollum/adapter_specs/pulls/4","id":50175727,"html_url":"https://github.com/gollum/adapter_specs/pull/4","diff_url":"https://github.com/gollum/adapter_specs/pull/4.diff","patch_url":"https://github.com/gollum/adapter_specs/pull/4.patch","issue_url":"https://api.github.com/repos/gollum/adapter_specs/issues/4","number":4,"state":"open","locked":false,"title":"Add spec for making modifications to the repository","user":{"login":"jhominal","id":96824,"avatar_url":"https://avatars.githubusercontent.com/u/96824?v=3","gravatar_id":"","url":"https://api.github.com/users/jhominal","html_url":"https://github.com/jhominal","followers_url":"https://api.github.com/users/jhominal/followers","following_url":"https://api.github.com/users/jhominal/following{/other_user}","gists_url":"https://api.github.com/users/jhominal/gists{/gist_id}","starred_url":"https://api.github.com/users/jhominal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhominal/subscriptions","organizations_url":"https://api.github.com/users/jhominal/orgs","repos_url":"https://api.github.com/users/jhominal/repos","events_url":"https://api.github.com/users/jhominal/events{/privacy}","received_events_url":"https://api.github.com/users/jhominal/received_events","type":"User","site_admin":false},"body":"This spec file has a few tests for checking that an adapter modifies a\r\nrepository as Grit would, when using the form of the `Index#commit` call\r\nused by `Gollum::Committer`.\r\n\r\nIn particular, one of the specs surfaces gollum/rugged_adapter#11\r\n(where the name of the committer was not the same as the author's).\r\n\r\nPR note: Please do not hesitate to modify, pull apart and rewrite the spec file that I added. (I have also checked that the specs run on the Grit, Rugged and RJGit adapters - with the exception of gollum/rugged_adapter#11, all the specs pass.","created_at":"2015-11-09T20:52:09Z","updated_at":"2015-11-11T12:27:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb28b28d9fd7ad8f667ba19d1172fc0a185512b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gollum/adapter_specs/pulls/4/commits","review_comments_url":"https://api.github.com/repos/gollum/adapter_specs/pulls/4/comments","review_comment_url":"https://api.github.com/repos/gollum/adapter_specs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gollum/adapter_specs/issues/4/comments","statuses_url":"https://api.github.com/repos/gollum/adapter_specs/statuses/08b8ca58e28bca60d887f499d46afa0362aedf48","head":{"label":"jhominal:master","ref":"master","sha":"08b8ca58e28bca60d887f499d46afa0362aedf48","user":{"login":"jhominal","id":96824,"avatar_url":"https://avatars.githubusercontent.com/u/96824?v=3","gravatar_id":"","url":"https://api.github.com/users/jhominal","html_url":"https://github.com/jhominal","followers_url":"https://api.github.com/users/jhominal/followers","following_url":"https://api.github.com/users/jhominal/following{/other_user}","gists_url":"https://api.github.com/users/jhominal/gists{/gist_id}","starred_url":"https://api.github.com/users/jhominal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhominal/subscriptions","organizations_url":"https://api.github.com/users/jhominal/orgs","repos_url":"https://api.github.com/users/jhominal/repos","events_url":"https://api.github.com/users/jhominal/events{/privacy}","received_events_url":"https://api.github.com/users/jhominal/received_events","type":"User","site_admin":false},"repo":{"id":45644716,"name":"adapter_specs","full_name":"jhominal/adapter_specs","owner":{"login":"jhominal","id":96824,"avatar_url":"https://avatars.githubusercontent.com/u/96824?v=3","gravatar_id":"","url":"https://api.github.com/users/jhominal","html_url":"https://github.com/jhominal","followers_url":"https://api.github.com/users/jhominal/followers","following_url":"https://api.github.com/users/jhominal/following{/other_user}","gists_url":"https://api.github.com/users/jhominal/gists{/gist_id}","starred_url":"https://api.github.com/users/jhominal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhominal/subscriptions","organizations_url":"https://api.github.com/users/jhominal/orgs","repos_url":"https://api.github.com/users/jhominal/repos","events_url":"https://api.github.com/users/jhominal/events{/privacy}","received_events_url":"https://api.github.com/users/jhominal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhominal/adapter_specs","description":"The spec suite for Gollum Git adapters.","fork":true,"url":"https://api.github.com/repos/jhominal/adapter_specs","forks_url":"https://api.github.com/repos/jhominal/adapter_specs/forks","keys_url":"https://api.github.com/repos/jhominal/adapter_specs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhominal/adapter_specs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhominal/adapter_specs/teams","hooks_url":"https://api.github.com/repos/jhominal/adapter_specs/hooks","issue_events_url":"https://api.github.com/repos/jhominal/adapter_specs/issues/events{/number}","events_url":"https://api.github.com/repos/jhominal/adapter_specs/events","assignees_url":"https://api.github.com/repos/jhominal/adapter_specs/assignees{/user}","branches_url":"https://api.github.com/repos/jhominal/adapter_specs/branches{/branch}","tags_url":"https://api.github.com/repos/jhominal/adapter_specs/tags","blobs_url":"https://api.github.com/repos/jhominal/adapter_specs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhominal/adapter_specs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhominal/adapter_specs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhominal/adapter_specs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhominal/adapter_specs/statuses/{sha}","languages_url":"https://api.github.com/repos/jhominal/adapter_specs/languages","stargazers_url":"https://api.github.com/repos/jhominal/adapter_specs/stargazers","contributors_url":"https://api.github.com/repos/jhominal/adapter_specs/contributors","subscribers_url":"https://api.github.com/repos/jhominal/adapter_specs/subscribers","subscription_url":"https://api.github.com/repos/jhominal/adapter_specs/subscription","commits_url":"https://api.github.com/repos/jhominal/adapter_specs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhominal/adapter_specs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhominal/adapter_specs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhominal/adapter_specs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhominal/adapter_specs/contents/{+path}","compare_url":"https://api.github.com/repos/jhominal/adapter_specs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhominal/adapter_specs/merges","archive_url":"https://api.github.com/repos/jhominal/adapter_specs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhominal/adapter_specs/downloads","issues_url":"https://api.github.com/repos/jhominal/adapter_specs/issues{/number}","pulls_url":"https://api.github.com/repos/jhominal/adapter_specs/pulls{/number}","milestones_url":"https://api.github.com/repos/jhominal/adapter_specs/milestones{/number}","notifications_url":"https://api.github.com/repos/jhominal/adapter_specs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhominal/adapter_specs/labels{/name}","releases_url":"https://api.github.com/repos/jhominal/adapter_specs/releases{/id}","created_at":"2015-11-05T22:56:15Z","updated_at":"2015-11-05T22:56:16Z","pushed_at":"2015-11-10T07:31:46Z","git_url":"git://github.com/jhominal/adapter_specs.git","ssh_url":"git@github.com:jhominal/adapter_specs.git","clone_url":"https://github.com/jhominal/adapter_specs.git","svn_url":"https://github.com/jhominal/adapter_specs","homepage":null,"size":1162,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"gollum:master","ref":"master","sha":"64907ccb24f1ceec7f123fe49e07041447149a04","user":{"login":"gollum","id":3840027,"avatar_url":"https://avatars.githubusercontent.com/u/3840027?v=3","gravatar_id":"","url":"https://api.github.com/users/gollum","html_url":"https://github.com/gollum","followers_url":"https://api.github.com/users/gollum/followers","following_url":"https://api.github.com/users/gollum/following{/other_user}","gists_url":"https://api.github.com/users/gollum/gists{/gist_id}","starred_url":"https://api.github.com/users/gollum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gollum/subscriptions","organizations_url":"https://api.github.com/users/gollum/orgs","repos_url":"https://api.github.com/users/gollum/repos","events_url":"https://api.github.com/users/gollum/events{/privacy}","received_events_url":"https://api.github.com/users/gollum/received_events","type":"Organization","site_admin":false},"repo":{"id":12876273,"name":"adapter_specs","full_name":"gollum/adapter_specs","owner":{"login":"gollum","id":3840027,"avatar_url":"https://avatars.githubusercontent.com/u/3840027?v=3","gravatar_id":"","url":"https://api.github.com/users/gollum","html_url":"https://github.com/gollum","followers_url":"https://api.github.com/users/gollum/followers","following_url":"https://api.github.com/users/gollum/following{/other_user}","gists_url":"https://api.github.com/users/gollum/gists{/gist_id}","starred_url":"https://api.github.com/users/gollum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gollum/subscriptions","organizations_url":"https://api.github.com/users/gollum/orgs","repos_url":"https://api.github.com/users/gollum/repos","events_url":"https://api.github.com/users/gollum/events{/privacy}","received_events_url":"https://api.github.com/users/gollum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gollum/adapter_specs","description":"The spec suite for Gollum Git adapters.","fork":false,"url":"https://api.github.com/repos/gollum/adapter_specs","forks_url":"https://api.github.com/repos/gollum/adapter_specs/forks","keys_url":"https://api.github.com/repos/gollum/adapter_specs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gollum/adapter_specs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gollum/adapter_specs/teams","hooks_url":"https://api.github.com/repos/gollum/adapter_specs/hooks","issue_events_url":"https://api.github.com/repos/gollum/adapter_specs/issues/events{/number}","events_url":"https://api.github.com/repos/gollum/adapter_specs/events","assignees_url":"https://api.github.com/repos/gollum/adapter_specs/assignees{/user}","branches_url":"https://api.github.com/repos/gollum/adapter_specs/branches{/branch}","tags_url":"https://api.github.com/repos/gollum/adapter_specs/tags","blobs_url":"https://api.github.com/repos/gollum/adapter_specs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gollum/adapter_specs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gollum/adapter_specs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gollum/adapter_specs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gollum/adapter_specs/statuses/{sha}","languages_url":"https://api.github.com/repos/gollum/adapter_specs/languages","stargazers_url":"https://api.github.com/repos/gollum/adapter_specs/stargazers","contributors_url":"https://api.github.com/repos/gollum/adapter_specs/contributors","subscribers_url":"https://api.github.com/repos/gollum/adapter_specs/subscribers","subscription_url":"https://api.github.com/repos/gollum/adapter_specs/subscription","commits_url":"https://api.github.com/repos/gollum/adapter_specs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gollum/adapter_specs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gollum/adapter_specs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gollum/adapter_specs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gollum/adapter_specs/contents/{+path}","compare_url":"https://api.github.com/repos/gollum/adapter_specs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gollum/adapter_specs/merges","archive_url":"https://api.github.com/repos/gollum/adapter_specs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gollum/adapter_specs/downloads","issues_url":"https://api.github.com/repos/gollum/adapter_specs/issues{/number}","pulls_url":"https://api.github.com/repos/gollum/adapter_specs/pulls{/number}","milestones_url":"https://api.github.com/repos/gollum/adapter_specs/milestones{/number}","notifications_url":"https://api.github.com/repos/gollum/adapter_specs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gollum/adapter_specs/labels{/name}","releases_url":"https://api.github.com/repos/gollum/adapter_specs/releases{/id}","created_at":"2013-09-16T19:19:03Z","updated_at":"2015-04-01T21:04:28Z","pushed_at":"2015-11-10T07:31:46Z","git_url":"git://github.com/gollum/adapter_specs.git","ssh_url":"git@github.com:gollum/adapter_specs.git","clone_url":"https://github.com/gollum/adapter_specs.git","svn_url":"https://github.com/gollum/adapter_specs","homepage":null,"size":1337,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gollum/adapter_specs/pulls/4"},"html":{"href":"https://github.com/gollum/adapter_specs/pull/4"},"issue":{"href":"https://api.github.com/repos/gollum/adapter_specs/issues/4"},"comments":{"href":"https://api.github.com/repos/gollum/adapter_specs/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/gollum/adapter_specs/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/gollum/adapter_specs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gollum/adapter_specs/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/gollum/adapter_specs/statuses/08b8ca58e28bca60d887f499d46afa0362aedf48"}}}}