{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/34299028","id":34299028,"diff_hunk":"@@ -482,22 +482,23 @@ def test_freeze_preloads_instance_variables\n   end\n \n   def test_method_missing_with_non_time_return_value\n-    @twz.time.expects(:foo).returns('bar')\n+    @twz.time.class.send(:define_method, :foo, -> { 'bar' })","path":"activesupport/test/core_ext/time_with_zone_test.rb","position":5,"original_position":5,"commit_id":"7b4b00bec62df50734b983c5bd3995271e03996a","original_commit_id":"7b4b00bec62df50734b983c5bd3995271e03996a","user":{"login":"kaspth","id":350807,"avatar_url":"https://avatars.githubusercontent.com/u/350807?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspth","html_url":"https://github.com/kaspth","followers_url":"https://api.github.com/users/kaspth/followers","following_url":"https://api.github.com/users/kaspth/following{/other_user}","gists_url":"https://api.github.com/users/kaspth/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspth/subscriptions","organizations_url":"https://api.github.com/users/kaspth/orgs","repos_url":"https://api.github.com/users/kaspth/repos","events_url":"https://api.github.com/users/kaspth/events{/privacy}","received_events_url":"https://api.github.com/users/kaspth/received_events","type":"User","site_admin":false},"body":"Ah, the error is probably because there's two dots. Try extracting `@twz.time` to a local `time` variable.\r\n\r\nSorry, I don't have a link handy. But it's the same thing as `def self.method_name`, it just allows you to define a method on an object.","created_at":"2015-07-09T20:21:14Z","updated_at":"2015-07-09T20:21:14Z","html_url":"https://github.com/rails/rails/pull/20457#discussion_r34299028","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/20457","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/34299028"},"html":{"href":"https://github.com/rails/rails/pull/20457#discussion_r34299028"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/20457"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/20457","id":37094215,"html_url":"https://github.com/rails/rails/pull/20457","diff_url":"https://github.com/rails/rails/pull/20457.diff","patch_url":"https://github.com/rails/rails/pull/20457.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/20457","number":20457,"state":"open","locked":false,"title":"Removed use of mocha in ActiveSupport","user":{"login":"ronakjangir47","id":1909242,"avatar_url":"https://avatars.githubusercontent.com/u/1909242?v=3","gravatar_id":"","url":"https://api.github.com/users/ronakjangir47","html_url":"https://github.com/ronakjangir47","followers_url":"https://api.github.com/users/ronakjangir47/followers","following_url":"https://api.github.com/users/ronakjangir47/following{/other_user}","gists_url":"https://api.github.com/users/ronakjangir47/gists{/gist_id}","starred_url":"https://api.github.com/users/ronakjangir47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronakjangir47/subscriptions","organizations_url":"https://api.github.com/users/ronakjangir47/orgs","repos_url":"https://api.github.com/users/ronakjangir47/repos","events_url":"https://api.github.com/users/ronakjangir47/events{/privacy}","received_events_url":"https://api.github.com/users/ronakjangir47/received_events","type":"User","site_admin":false},"body":"caching_test.rb have some tweaks , I'm not sure how to handle them with minitest.\r\nAlso I replaced `never` expectation with \r\n```` ruby \r\nassert_equal \"expected call() => nil, got []\", assert_raises(MockExpectationError) { mock.verify }.message \r\n```` \r\nnot sure if it's the right way to do this","created_at":"2015-06-06T17:57:29Z","updated_at":"2015-07-09T20:21:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7399187613857ceaff154c94b5fa7d4a1d1eb03","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/20457/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/20457/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/20457/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/7b4b00bec62df50734b983c5bd3995271e03996a","head":{"label":"ronakjangir47:remove_mocha_activesupport","ref":"remove_mocha_activesupport","sha":"7b4b00bec62df50734b983c5bd3995271e03996a","user":{"login":"ronakjangir47","id":1909242,"avatar_url":"https://avatars.githubusercontent.com/u/1909242?v=3","gravatar_id":"","url":"https://api.github.com/users/ronakjangir47","html_url":"https://github.com/ronakjangir47","followers_url":"https://api.github.com/users/ronakjangir47/followers","following_url":"https://api.github.com/users/ronakjangir47/following{/other_user}","gists_url":"https://api.github.com/users/ronakjangir47/gists{/gist_id}","starred_url":"https://api.github.com/users/ronakjangir47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronakjangir47/subscriptions","organizations_url":"https://api.github.com/users/ronakjangir47/orgs","repos_url":"https://api.github.com/users/ronakjangir47/repos","events_url":"https://api.github.com/users/ronakjangir47/events{/privacy}","received_events_url":"https://api.github.com/users/ronakjangir47/received_events","type":"User","site_admin":false},"repo":{"id":24029561,"name":"rails","full_name":"ronakjangir47/rails","owner":{"login":"ronakjangir47","id":1909242,"avatar_url":"https://avatars.githubusercontent.com/u/1909242?v=3","gravatar_id":"","url":"https://api.github.com/users/ronakjangir47","html_url":"https://github.com/ronakjangir47","followers_url":"https://api.github.com/users/ronakjangir47/followers","following_url":"https://api.github.com/users/ronakjangir47/following{/other_user}","gists_url":"https://api.github.com/users/ronakjangir47/gists{/gist_id}","starred_url":"https://api.github.com/users/ronakjangir47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronakjangir47/subscriptions","organizations_url":"https://api.github.com/users/ronakjangir47/orgs","repos_url":"https://api.github.com/users/ronakjangir47/repos","events_url":"https://api.github.com/users/ronakjangir47/events{/privacy}","received_events_url":"https://api.github.com/users/ronakjangir47/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ronakjangir47/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/ronakjangir47/rails","forks_url":"https://api.github.com/repos/ronakjangir47/rails/forks","keys_url":"https://api.github.com/repos/ronakjangir47/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ronakjangir47/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ronakjangir47/rails/teams","hooks_url":"https://api.github.com/repos/ronakjangir47/rails/hooks","issue_events_url":"https://api.github.com/repos/ronakjangir47/rails/issues/events{/number}","events_url":"https://api.github.com/repos/ronakjangir47/rails/events","assignees_url":"https://api.github.com/repos/ronakjangir47/rails/assignees{/user}","branches_url":"https://api.github.com/repos/ronakjangir47/rails/branches{/branch}","tags_url":"https://api.github.com/repos/ronakjangir47/rails/tags","blobs_url":"https://api.github.com/repos/ronakjangir47/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ronakjangir47/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ronakjangir47/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ronakjangir47/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ronakjangir47/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ronakjangir47/rails/languages","stargazers_url":"https://api.github.com/repos/ronakjangir47/rails/stargazers","contributors_url":"https://api.github.com/repos/ronakjangir47/rails/contributors","subscribers_url":"https://api.github.com/repos/ronakjangir47/rails/subscribers","subscription_url":"https://api.github.com/repos/ronakjangir47/rails/subscription","commits_url":"https://api.github.com/repos/ronakjangir47/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ronakjangir47/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ronakjangir47/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ronakjangir47/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/ronakjangir47/rails/contents/{+path}","compare_url":"https://api.github.com/repos/ronakjangir47/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ronakjangir47/rails/merges","archive_url":"https://api.github.com/repos/ronakjangir47/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ronakjangir47/rails/downloads","issues_url":"https://api.github.com/repos/ronakjangir47/rails/issues{/number}","pulls_url":"https://api.github.com/repos/ronakjangir47/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ronakjangir47/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ronakjangir47/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ronakjangir47/rails/labels{/name}","releases_url":"https://api.github.com/repos/ronakjangir47/rails/releases{/id}","created_at":"2014-09-14T18:25:14Z","updated_at":"2015-05-20T16:54:33Z","pushed_at":"2015-07-09T19:39:31Z","git_url":"git://github.com/ronakjangir47/rails.git","ssh_url":"git@github.com:ronakjangir47/rails.git","clone_url":"https://github.com/ronakjangir47/rails.git","svn_url":"https://github.com/ronakjangir47/rails","homepage":"http://rubyonrails.org","size":140997,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rails:master","ref":"master","sha":"87b4f3105f7eaa2db6cbe75ec0e4ee77146552d2","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-07-09T18:25:21Z","pushed_at":"2015-07-09T19:39:46Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":426571,"stargazers_count":26847,"watchers_count":26847,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10716,"mirror_url":null,"open_issues_count":840,"forks":10716,"open_issues":840,"watchers":26847,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/20457"},"html":{"href":"https://github.com/rails/rails/pull/20457"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/20457"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/20457/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/20457/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/20457/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/7b4b00bec62df50734b983c5bd3995271e03996a"}}}}