{"action":"created","comment":{"url":"https://api.github.com/repos/codeforamerica/CutePets/pulls/comments/47171731","id":47171731,"diff_hunk":"@@ -0,0 +1,28 @@\n+require 'cute_pets/post_generator'\n+require 'minitest/autorun'\n+\n+describe 'FacebookPostGenerator' do\n+  describe '.create_message' do\n+    it 'returns a string with the pet name, description and shelter link' do\n+      message = PostGenerator.create_message('Moofle', 'neutered female lab', 'http://www.example.org/moofle')\n+      message.must_match /Moofle. I am a neutered female lab. http\\:\\/\\/www\\.example\\.org\\/moofle/\n+    end\n+\n+    it 'returns a string with the appropriate article' do\n+      message = PostGenerator.create_message('Miffle', 'unaltered female kitten', 'http://www.example.org/miffle')\n+      message.must_match /Miffle. I am an unaltered female kitten. http\\:\\/\\/www\\.example\\.org\\/miffle/\n+    end\n+  end\n+\n+  describe '.post' do\n+    it 'uses the koala gem to post to facebook' do\n+      client_object = MiniTest::Mock.new\n+      PostGenerator.stub :facebook_client, client_object do\n+        message = 'Hi! I am Woofles. I am a neutered female nerdy cat. http://www.example.org/woofles'","path":"spec/facebook_post_generator_spec.rb","position":21,"original_position":21,"commit_id":"86996feaa0de4a8f77722814ca12df1c7141aef6","original_commit_id":"86996feaa0de4a8f77722814ca12df1c7141aef6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-12-09T23:55:04Z","updated_at":"2015-12-09T23:55:04Z","html_url":"https://github.com/codeforamerica/CutePets/pull/25#discussion_r47171731","pull_request_url":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/CutePets/pulls/comments/47171731"},"html":{"href":"https://github.com/codeforamerica/CutePets/pull/25#discussion_r47171731"},"pull_request":{"href":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25","id":34112009,"html_url":"https://github.com/codeforamerica/CutePets/pull/25","diff_url":"https://github.com/codeforamerica/CutePets/pull/25.diff","patch_url":"https://github.com/codeforamerica/CutePets/pull/25.patch","issue_url":"https://api.github.com/repos/codeforamerica/CutePets/issues/25","number":25,"state":"open","locked":false,"title":"Added Facebook Integration","user":{"login":"dillondrobena","id":4689087,"avatar_url":"https://avatars.githubusercontent.com/u/4689087?v=3","gravatar_id":"","url":"https://api.github.com/users/dillondrobena","html_url":"https://github.com/dillondrobena","followers_url":"https://api.github.com/users/dillondrobena/followers","following_url":"https://api.github.com/users/dillondrobena/following{/other_user}","gists_url":"https://api.github.com/users/dillondrobena/gists{/gist_id}","starred_url":"https://api.github.com/users/dillondrobena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dillondrobena/subscriptions","organizations_url":"https://api.github.com/users/dillondrobena/orgs","repos_url":"https://api.github.com/users/dillondrobena/repos","events_url":"https://api.github.com/users/dillondrobena/events{/privacy}","received_events_url":"https://api.github.com/users/dillondrobena/received_events","type":"User","site_admin":false},"body":"Added facebook post integration. Similar to twitter you need to get a facebook access_token and add that as an environment variable. I added some instructions in the README. If you don't want to schedule it on heroku you can just run the rake task `rake post_pet` I also changed the minimum Ruby version in the Gemfile since it was conflicting for me.","created_at":"2015-04-25T19:52:03Z","updated_at":"2015-12-09T23:55:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"704f725b134418c76445673d0670d86944edf38e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/CutePets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/CutePets/issues/25/comments","statuses_url":"https://api.github.com/repos/codeforamerica/CutePets/statuses/86996feaa0de4a8f77722814ca12df1c7141aef6","head":{"label":"dillondrobena:master","ref":"master","sha":"86996feaa0de4a8f77722814ca12df1c7141aef6","user":{"login":"dillondrobena","id":4689087,"avatar_url":"https://avatars.githubusercontent.com/u/4689087?v=3","gravatar_id":"","url":"https://api.github.com/users/dillondrobena","html_url":"https://github.com/dillondrobena","followers_url":"https://api.github.com/users/dillondrobena/followers","following_url":"https://api.github.com/users/dillondrobena/following{/other_user}","gists_url":"https://api.github.com/users/dillondrobena/gists{/gist_id}","starred_url":"https://api.github.com/users/dillondrobena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dillondrobena/subscriptions","organizations_url":"https://api.github.com/users/dillondrobena/orgs","repos_url":"https://api.github.com/users/dillondrobena/repos","events_url":"https://api.github.com/users/dillondrobena/events{/privacy}","received_events_url":"https://api.github.com/users/dillondrobena/received_events","type":"User","site_admin":false},"repo":{"id":34582761,"name":"CutePets","full_name":"dillondrobena/CutePets","owner":{"login":"dillondrobena","id":4689087,"avatar_url":"https://avatars.githubusercontent.com/u/4689087?v=3","gravatar_id":"","url":"https://api.github.com/users/dillondrobena","html_url":"https://github.com/dillondrobena","followers_url":"https://api.github.com/users/dillondrobena/followers","following_url":"https://api.github.com/users/dillondrobena/following{/other_user}","gists_url":"https://api.github.com/users/dillondrobena/gists{/gist_id}","starred_url":"https://api.github.com/users/dillondrobena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dillondrobena/subscriptions","organizations_url":"https://api.github.com/users/dillondrobena/orgs","repos_url":"https://api.github.com/users/dillondrobena/repos","events_url":"https://api.github.com/users/dillondrobena/events{/privacy}","received_events_url":"https://api.github.com/users/dillondrobena/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dillondrobena/CutePets","description":"Twitter bot that posts adoptable pets in your city.","fork":true,"url":"https://api.github.com/repos/dillondrobena/CutePets","forks_url":"https://api.github.com/repos/dillondrobena/CutePets/forks","keys_url":"https://api.github.com/repos/dillondrobena/CutePets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dillondrobena/CutePets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dillondrobena/CutePets/teams","hooks_url":"https://api.github.com/repos/dillondrobena/CutePets/hooks","issue_events_url":"https://api.github.com/repos/dillondrobena/CutePets/issues/events{/number}","events_url":"https://api.github.com/repos/dillondrobena/CutePets/events","assignees_url":"https://api.github.com/repos/dillondrobena/CutePets/assignees{/user}","branches_url":"https://api.github.com/repos/dillondrobena/CutePets/branches{/branch}","tags_url":"https://api.github.com/repos/dillondrobena/CutePets/tags","blobs_url":"https://api.github.com/repos/dillondrobena/CutePets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dillondrobena/CutePets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dillondrobena/CutePets/git/refs{/sha}","trees_url":"https://api.github.com/repos/dillondrobena/CutePets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dillondrobena/CutePets/statuses/{sha}","languages_url":"https://api.github.com/repos/dillondrobena/CutePets/languages","stargazers_url":"https://api.github.com/repos/dillondrobena/CutePets/stargazers","contributors_url":"https://api.github.com/repos/dillondrobena/CutePets/contributors","subscribers_url":"https://api.github.com/repos/dillondrobena/CutePets/subscribers","subscription_url":"https://api.github.com/repos/dillondrobena/CutePets/subscription","commits_url":"https://api.github.com/repos/dillondrobena/CutePets/commits{/sha}","git_commits_url":"https://api.github.com/repos/dillondrobena/CutePets/git/commits{/sha}","comments_url":"https://api.github.com/repos/dillondrobena/CutePets/comments{/number}","issue_comment_url":"https://api.github.com/repos/dillondrobena/CutePets/issues/comments{/number}","contents_url":"https://api.github.com/repos/dillondrobena/CutePets/contents/{+path}","compare_url":"https://api.github.com/repos/dillondrobena/CutePets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dillondrobena/CutePets/merges","archive_url":"https://api.github.com/repos/dillondrobena/CutePets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dillondrobena/CutePets/downloads","issues_url":"https://api.github.com/repos/dillondrobena/CutePets/issues{/number}","pulls_url":"https://api.github.com/repos/dillondrobena/CutePets/pulls{/number}","milestones_url":"https://api.github.com/repos/dillondrobena/CutePets/milestones{/number}","notifications_url":"https://api.github.com/repos/dillondrobena/CutePets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dillondrobena/CutePets/labels{/name}","releases_url":"https://api.github.com/repos/dillondrobena/CutePets/releases{/id}","created_at":"2015-04-25T19:26:46Z","updated_at":"2015-04-25T20:07:08Z","pushed_at":"2015-12-09T23:54:57Z","git_url":"git://github.com/dillondrobena/CutePets.git","ssh_url":"git@github.com:dillondrobena/CutePets.git","clone_url":"https://github.com/dillondrobena/CutePets.git","svn_url":"https://github.com/dillondrobena/CutePets","homepage":"","size":107,"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":"codeforamerica:master","ref":"master","sha":"fa091949685a909688612809a465764079853ce6","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":24078176,"name":"CutePets","full_name":"codeforamerica/CutePets","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/CutePets","description":"Twitter bot that posts adoptable pets in your city.","fork":false,"url":"https://api.github.com/repos/codeforamerica/CutePets","forks_url":"https://api.github.com/repos/codeforamerica/CutePets/forks","keys_url":"https://api.github.com/repos/codeforamerica/CutePets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/CutePets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/CutePets/teams","hooks_url":"https://api.github.com/repos/codeforamerica/CutePets/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/CutePets/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/CutePets/events","assignees_url":"https://api.github.com/repos/codeforamerica/CutePets/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/CutePets/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/CutePets/tags","blobs_url":"https://api.github.com/repos/codeforamerica/CutePets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/CutePets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/CutePets/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/CutePets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/CutePets/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/CutePets/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/CutePets/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/CutePets/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/CutePets/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/CutePets/subscription","commits_url":"https://api.github.com/repos/codeforamerica/CutePets/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/CutePets/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/CutePets/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/CutePets/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/CutePets/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/CutePets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/CutePets/merges","archive_url":"https://api.github.com/repos/codeforamerica/CutePets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/CutePets/downloads","issues_url":"https://api.github.com/repos/codeforamerica/CutePets/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/CutePets/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/CutePets/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/CutePets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/CutePets/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/CutePets/releases{/id}","created_at":"2014-09-15T23:46:24Z","updated_at":"2015-12-02T16:52:32Z","pushed_at":"2015-12-09T23:54:59Z","git_url":"git://github.com/codeforamerica/CutePets.git","ssh_url":"git@github.com:codeforamerica/CutePets.git","clone_url":"https://github.com/codeforamerica/CutePets.git","svn_url":"https://github.com/codeforamerica/CutePets","homepage":"","size":787,"stargazers_count":30,"watchers_count":30,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":7,"forks":49,"open_issues":7,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25"},"html":{"href":"https://github.com/codeforamerica/CutePets/pull/25"},"issue":{"href":"https://api.github.com/repos/codeforamerica/CutePets/issues/25"},"comments":{"href":"https://api.github.com/repos/codeforamerica/CutePets/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/CutePets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/CutePets/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/CutePets/statuses/86996feaa0de4a8f77722814ca12df1c7141aef6"}}}}