{"action":"created","comment":{"url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/comments/94081988","pull_request_review_id":14612691,"id":94081988,"diff_hunk":"@@ -0,0 +1,121 @@\n+require_relative '../../_plugins/author_data'\n+require 'pry'\n+require 'rb-readline'\n+\n+RSpec.describe SiteData::AuthorData do\n+  before(:each) do\n+  root = File.dirname(File.dirname(__FILE__))\n+  @author_data = SiteData::AuthorData.new(root)\n+  end\n+\n+  context \"given a file with only YAML frontmatter\" do\n+    it \"confirms that a exists\" do\n+      exists = @author_data.exists? 'author'\n+      expect(exists).to eq true\n+    end\n+\n+    it \"confirms that a missing file doesn't exist\" do\n+      exists = @author_data.exists? 'authored'\n+      expect(exists).to eq false\n+    end\n+\n+    it \"fetches a key\" do\n+      author_name = @author_data.fetch('author', 'name')\n+      expect(author_name).to eq 'aaron'\n+    end\n+\n+    it \"fetches a key that isn't there\" do\n+      author_name = @author_data.fetch('author', 'bogus_key')\n+      expect(author_name).not_to eq 'aaron'\n+    end\n+\n+    it \"can update a file without referencing a file extension\" do\n+      author_name = @author_data.fetch('author', 'name')\n+      expect(author_name).to eq 'aaron'\n+\n+      @author_data.update('author', 'name', 'brian')\n+      author_name = @author_data.fetch('author', 'name')\n+      expect(author_name).to eq 'brian'\n+\n+      @author_data.update('author', 'name', 'aaron')\n+      author_name = @author_data.fetch('author', 'name')\n+      expect(author_name).to eq 'aaron'\n+    end\n+\n+    it \"can update a file by referencing a file extension\" do\n+      author_name = @author_data.fetch('author', 'name')\n+      expect(author_name).to eq 'aaron'\n+\n+      @author_data.update('author.md', 'name', 'brian')\n+      author_name = @author_data.fetch('author', 'name')\n+      expect(author_name).to eq 'brian'\n+\n+      @author_data.update('author.md', 'name', 'aaron')\n+      author_name = @author_data.fetch('author', 'name')\n+      expect(author_name).to eq 'aaron'\n+    end\n+  end\n+\n+  context \"given a file with content and YAML frontmatter\" do","path":"spec/_plugins/author_data_spec.rb","position":59,"original_position":59,"commit_id":"a0df5f6e0ab5df2d3f6954c41a80934f285538f8","original_commit_id":"a0df5f6e0ab5df2d3f6954c41a80934f285538f8","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-12-28T21:58:55Z","updated_at":"2016-12-28T21:58:55Z","html_url":"https://github.com/18F/18f.gsa.gov/pull/2153#discussion_r94081988","pull_request_url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153","_links":{"self":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/comments/94081988"},"html":{"href":"https://github.com/18F/18f.gsa.gov/pull/2153#discussion_r94081988"},"pull_request":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153"}}},"pull_request":{"url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153","id":99575573,"html_url":"https://github.com/18F/18f.gsa.gov/pull/2153","diff_url":"https://github.com/18F/18f.gsa.gov/pull/2153.diff","patch_url":"https://github.com/18F/18f.gsa.gov/pull/2153.patch","issue_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues/2153","number":2153,"state":"open","locked":false,"title":"[WIP] Add rspec","user":{"login":"gemfarmer","id":4803473,"avatar_url":"https://avatars.githubusercontent.com/u/4803473?v=3","gravatar_id":"","url":"https://api.github.com/users/gemfarmer","html_url":"https://github.com/gemfarmer","followers_url":"https://api.github.com/users/gemfarmer/followers","following_url":"https://api.github.com/users/gemfarmer/following{/other_user}","gists_url":"https://api.github.com/users/gemfarmer/gists{/gist_id}","starred_url":"https://api.github.com/users/gemfarmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemfarmer/subscriptions","organizations_url":"https://api.github.com/users/gemfarmer/orgs","repos_url":"https://api.github.com/users/gemfarmer/repos","events_url":"https://api.github.com/users/gemfarmer/events{/privacy}","received_events_url":"https://api.github.com/users/gemfarmer/received_events","type":"User","site_admin":false},"body":"⚠️ WIP :warning:\r\n\r\nFixes issue(s) #2136\r\n\r\n[![CircleCI](https://circleci.com/gh/18F/18f.gsa.gov/tree/rspec-tests.svg?style=svg)](https://circleci.com/gh/18F/18f.gsa.gov/tree/rspec-tests)\r\n\r\n[:sunglasses: PREVIEW](https://federalist.18f.gov/preview/18F/18f.gsa.gov/rspec-tests/)\r\n\r\nChanges proposed in this pull request:\r\n- adds rspec, basic tests for certain plugins to compliment documentation\r\n\r\n/cc @gboone \r\n","created_at":"2016-12-28T17:52:12Z","updated_at":"2016-12-28T21:58:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1cc3688413ba5b4b2ee090cff2f5af14358280b5","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/18F/18f.gsa.gov/milestones/16","html_url":"https://github.com/18F/18f.gsa.gov/milestone/16","labels_url":"https://api.github.com/repos/18F/18f.gsa.gov/milestones/16/labels","id":2205376,"number":16,"title":"Sprint-DoubleDownpour","description":"","creator":{"login":"coreycaitlin","id":1450354,"avatar_url":"https://avatars.githubusercontent.com/u/1450354?v=3","gravatar_id":"","url":"https://api.github.com/users/coreycaitlin","html_url":"https://github.com/coreycaitlin","followers_url":"https://api.github.com/users/coreycaitlin/followers","following_url":"https://api.github.com/users/coreycaitlin/following{/other_user}","gists_url":"https://api.github.com/users/coreycaitlin/gists{/gist_id}","starred_url":"https://api.github.com/users/coreycaitlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreycaitlin/subscriptions","organizations_url":"https://api.github.com/users/coreycaitlin/orgs","repos_url":"https://api.github.com/users/coreycaitlin/repos","events_url":"https://api.github.com/users/coreycaitlin/events{/privacy}","received_events_url":"https://api.github.com/users/coreycaitlin/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":9,"state":"open","created_at":"2016-12-19T17:34:04Z","updated_at":"2016-12-28T17:52:12Z","due_on":"2016-12-30T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153/commits","review_comments_url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153/comments","review_comment_url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues/2153/comments","statuses_url":"https://api.github.com/repos/18F/18f.gsa.gov/statuses/a0df5f6e0ab5df2d3f6954c41a80934f285538f8","head":{"label":"18F:rspec-tests","ref":"rspec-tests","sha":"a0df5f6e0ab5df2d3f6954c41a80934f285538f8","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":17324120,"name":"18f.gsa.gov","full_name":"18F/18f.gsa.gov","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/18f.gsa.gov","description":"This repository contains 18F's website.","fork":false,"url":"https://api.github.com/repos/18F/18f.gsa.gov","forks_url":"https://api.github.com/repos/18F/18f.gsa.gov/forks","keys_url":"https://api.github.com/repos/18F/18f.gsa.gov/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/18f.gsa.gov/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/18f.gsa.gov/teams","hooks_url":"https://api.github.com/repos/18F/18f.gsa.gov/hooks","issue_events_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues/events{/number}","events_url":"https://api.github.com/repos/18F/18f.gsa.gov/events","assignees_url":"https://api.github.com/repos/18F/18f.gsa.gov/assignees{/user}","branches_url":"https://api.github.com/repos/18F/18f.gsa.gov/branches{/branch}","tags_url":"https://api.github.com/repos/18F/18f.gsa.gov/tags","blobs_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/18f.gsa.gov/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/18f.gsa.gov/languages","stargazers_url":"https://api.github.com/repos/18F/18f.gsa.gov/stargazers","contributors_url":"https://api.github.com/repos/18F/18f.gsa.gov/contributors","subscribers_url":"https://api.github.com/repos/18F/18f.gsa.gov/subscribers","subscription_url":"https://api.github.com/repos/18F/18f.gsa.gov/subscription","commits_url":"https://api.github.com/repos/18F/18f.gsa.gov/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/18f.gsa.gov/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/18f.gsa.gov/contents/{+path}","compare_url":"https://api.github.com/repos/18F/18f.gsa.gov/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/18f.gsa.gov/merges","archive_url":"https://api.github.com/repos/18F/18f.gsa.gov/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/18f.gsa.gov/downloads","issues_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues{/number}","pulls_url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/18f.gsa.gov/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/18f.gsa.gov/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/18f.gsa.gov/labels{/name}","releases_url":"https://api.github.com/repos/18F/18f.gsa.gov/releases{/id}","deployments_url":"https://api.github.com/repos/18F/18f.gsa.gov/deployments","created_at":"2014-03-01T20:57:14Z","updated_at":"2016-12-04T11:25:17Z","pushed_at":"2016-12-28T21:58:48Z","git_url":"git://github.com/18F/18f.gsa.gov.git","ssh_url":"git@github.com:18F/18f.gsa.gov.git","clone_url":"https://github.com/18F/18f.gsa.gov.git","svn_url":"https://github.com/18F/18f.gsa.gov","homepage":"https://18f.gsa.gov","size":264593,"stargazers_count":165,"watchers_count":165,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":231,"mirror_url":null,"open_issues_count":45,"forks":231,"open_issues":45,"watchers":165,"default_branch":"master"}},"base":{"label":"18F:dev","ref":"dev","sha":"915338868f152a99d4524d6f6d190a29dbd40bae","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":17324120,"name":"18f.gsa.gov","full_name":"18F/18f.gsa.gov","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/18f.gsa.gov","description":"This repository contains 18F's website.","fork":false,"url":"https://api.github.com/repos/18F/18f.gsa.gov","forks_url":"https://api.github.com/repos/18F/18f.gsa.gov/forks","keys_url":"https://api.github.com/repos/18F/18f.gsa.gov/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/18f.gsa.gov/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/18f.gsa.gov/teams","hooks_url":"https://api.github.com/repos/18F/18f.gsa.gov/hooks","issue_events_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues/events{/number}","events_url":"https://api.github.com/repos/18F/18f.gsa.gov/events","assignees_url":"https://api.github.com/repos/18F/18f.gsa.gov/assignees{/user}","branches_url":"https://api.github.com/repos/18F/18f.gsa.gov/branches{/branch}","tags_url":"https://api.github.com/repos/18F/18f.gsa.gov/tags","blobs_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/18f.gsa.gov/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/18f.gsa.gov/languages","stargazers_url":"https://api.github.com/repos/18F/18f.gsa.gov/stargazers","contributors_url":"https://api.github.com/repos/18F/18f.gsa.gov/contributors","subscribers_url":"https://api.github.com/repos/18F/18f.gsa.gov/subscribers","subscription_url":"https://api.github.com/repos/18F/18f.gsa.gov/subscription","commits_url":"https://api.github.com/repos/18F/18f.gsa.gov/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/18f.gsa.gov/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/18f.gsa.gov/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/18f.gsa.gov/contents/{+path}","compare_url":"https://api.github.com/repos/18F/18f.gsa.gov/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/18f.gsa.gov/merges","archive_url":"https://api.github.com/repos/18F/18f.gsa.gov/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/18f.gsa.gov/downloads","issues_url":"https://api.github.com/repos/18F/18f.gsa.gov/issues{/number}","pulls_url":"https://api.github.com/repos/18F/18f.gsa.gov/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/18f.gsa.gov/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/18f.gsa.gov/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/18f.gsa.gov/labels{/name}","releases_url":"https://api.github.com/repos/18F/18f.gsa.gov/releases{/id}","deployments_url":"https://api.github.com/repos/18F/18f.gsa.gov/deployments","created_at":"2014-03-01T20:57:14Z","updated_at":"2016-12-04T11:25:17Z","pushed_at":"2016-12-28T21:58:48Z","git_url":"git://github.com/18F/18f.gsa.gov.git","ssh_url":"git@github.com:18F/18f.gsa.gov.git","clone_url":"https://github.com/18F/18f.gsa.gov.git","svn_url":"https://github.com/18F/18f.gsa.gov","homepage":"https://18f.gsa.gov","size":264593,"stargazers_count":165,"watchers_count":165,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":231,"mirror_url":null,"open_issues_count":45,"forks":231,"open_issues":45,"watchers":165,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153"},"html":{"href":"https://github.com/18F/18f.gsa.gov/pull/2153"},"issue":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/issues/2153"},"comments":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/issues/2153/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/pulls/2153/commits"},"statuses":{"href":"https://api.github.com/repos/18F/18f.gsa.gov/statuses/a0df5f6e0ab5df2d3f6954c41a80934f285538f8"}}}}
{"actor":{"display_login":"houndci-bot"}}