{"action":"created","comment":{"url":"https://api.github.com/repos/webmstk/qaa/pulls/comments/44923906","id":44923906,"diff_hunk":"@@ -1,24 +1,29 @@\n-  .wrap\n-    .attributes\n-      = render 'share/votes/rating', votable: @question\n+.wrap\n+  .attributes\n+    = render 'share/votes/rating', votable: @question\n \n-    .content\n-      h2= @question.title\n-      p= @question.body\n-      - if @question.attachments.any?\n-        p Прикрепленные файлы:\n-        ul.question-files\n-          - @question.attachments.each do |a|\n-            li id=\"question-file-#{a.id}\"\n-              = link_to a.file.filename, a.file.url\n-              - if user_signed_in? && current_user == a.attachable.user\n-                span\n-                  | &nbsp;[&nbsp;\n-                  = link_to 'удалить', attachment_path(a), method: :delete, remote: true\n-                  | &nbsp;]\n+  .content\n+    h2= @question.title\n+    p= @question.body\n+    - if @question.attachments.any?\n+      p Прикрепленные файлы:\n+      ul.question-files\n+        - @question.attachments.each do |a|\n+          li id=\"question-file-#{a.id}\"\n+            = link_to a.file.filename, a.file.url\n+            - if user_signed_in? && current_user == a.attachable.user\n+              span\n+                | &nbsp;[&nbsp;\n+                = link_to 'удалить', attachment_path(a), method: :delete, remote: true\n+                | &nbsp;]\n \n \n-      - if user_signed_in? && @question.user == current_user\n-        .controls\n+    .controls\n+      - if user_signed_in?\n+        - if @question.user == current_user","path":"app/views/questions/_question.html.slim","position":42,"original_position":42,"commit_id":"d15d8f2709013ec342d4ce3299239e5d1b2e9e51","original_commit_id":"d15d8f2709013ec342d4ce3299239e5d1b2e9e51","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"И здесь проверка по id должна быть. За это еще в начале курса гоняли","created_at":"2015-11-16T13:43:21Z","updated_at":"2015-11-16T13:43:21Z","html_url":"https://github.com/webmstk/qaa/pull/15#discussion_r44923906","pull_request_url":"https://api.github.com/repos/webmstk/qaa/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/webmstk/qaa/pulls/comments/44923906"},"html":{"href":"https://github.com/webmstk/qaa/pull/15#discussion_r44923906"},"pull_request":{"href":"https://api.github.com/repos/webmstk/qaa/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/webmstk/qaa/pulls/15","id":50796905,"html_url":"https://github.com/webmstk/qaa/pull/15","diff_url":"https://github.com/webmstk/qaa/pull/15.diff","patch_url":"https://github.com/webmstk/qaa/pull/15.patch","issue_url":"https://api.github.com/repos/webmstk/qaa/issues/15","number":15,"state":"open","locked":false,"title":"do lesson 17","user":{"login":"webmstk","id":10058472,"avatar_url":"https://avatars.githubusercontent.com/u/10058472?v=3","gravatar_id":"","url":"https://api.github.com/users/webmstk","html_url":"https://github.com/webmstk","followers_url":"https://api.github.com/users/webmstk/followers","following_url":"https://api.github.com/users/webmstk/following{/other_user}","gists_url":"https://api.github.com/users/webmstk/gists{/gist_id}","starred_url":"https://api.github.com/users/webmstk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmstk/subscriptions","organizations_url":"https://api.github.com/users/webmstk/orgs","repos_url":"https://api.github.com/users/webmstk/repos","events_url":"https://api.github.com/users/webmstk/events{/privacy}","received_events_url":"https://api.github.com/users/webmstk/received_events","type":"User","site_admin":false},"body":"Реализованы дайджест и подписка на вопросы.\r\n\r\nНе могу понять, почему не проходит тест /spec/models/answer_spec.rb:35 (закомментировано). \r\n\r\nПри генерации mailer-ов создаются тесты в /spec/mailers/ . В общем-то понятно, для чего они, но непонятно, что за папка /spec_mailers/previews. Что там за тесты должны лежать? Это типа веб-версии писем?\r\n\r\nКак протестировать то, что отправка дайджеста происходит раз в день?","created_at":"2015-11-16T11:06:32Z","updated_at":"2015-11-16T13:43:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54c46edde1690416d2ad974b2def5965c849aa48","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/webmstk/qaa/pulls/15/commits","review_comments_url":"https://api.github.com/repos/webmstk/qaa/pulls/15/comments","review_comment_url":"https://api.github.com/repos/webmstk/qaa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webmstk/qaa/issues/15/comments","statuses_url":"https://api.github.com/repos/webmstk/qaa/statuses/d15d8f2709013ec342d4ce3299239e5d1b2e9e51","head":{"label":"webmstk:task17","ref":"task17","sha":"d15d8f2709013ec342d4ce3299239e5d1b2e9e51","user":{"login":"webmstk","id":10058472,"avatar_url":"https://avatars.githubusercontent.com/u/10058472?v=3","gravatar_id":"","url":"https://api.github.com/users/webmstk","html_url":"https://github.com/webmstk","followers_url":"https://api.github.com/users/webmstk/followers","following_url":"https://api.github.com/users/webmstk/following{/other_user}","gists_url":"https://api.github.com/users/webmstk/gists{/gist_id}","starred_url":"https://api.github.com/users/webmstk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmstk/subscriptions","organizations_url":"https://api.github.com/users/webmstk/orgs","repos_url":"https://api.github.com/users/webmstk/repos","events_url":"https://api.github.com/users/webmstk/events{/privacy}","received_events_url":"https://api.github.com/users/webmstk/received_events","type":"User","site_admin":false},"repo":{"id":36569251,"name":"qaa","full_name":"webmstk/qaa","owner":{"login":"webmstk","id":10058472,"avatar_url":"https://avatars.githubusercontent.com/u/10058472?v=3","gravatar_id":"","url":"https://api.github.com/users/webmstk","html_url":"https://github.com/webmstk","followers_url":"https://api.github.com/users/webmstk/followers","following_url":"https://api.github.com/users/webmstk/following{/other_user}","gists_url":"https://api.github.com/users/webmstk/gists{/gist_id}","starred_url":"https://api.github.com/users/webmstk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmstk/subscriptions","organizations_url":"https://api.github.com/users/webmstk/orgs","repos_url":"https://api.github.com/users/webmstk/repos","events_url":"https://api.github.com/users/webmstk/events{/privacy}","received_events_url":"https://api.github.com/users/webmstk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/webmstk/qaa","description":"Questions & Answers project","fork":false,"url":"https://api.github.com/repos/webmstk/qaa","forks_url":"https://api.github.com/repos/webmstk/qaa/forks","keys_url":"https://api.github.com/repos/webmstk/qaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webmstk/qaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webmstk/qaa/teams","hooks_url":"https://api.github.com/repos/webmstk/qaa/hooks","issue_events_url":"https://api.github.com/repos/webmstk/qaa/issues/events{/number}","events_url":"https://api.github.com/repos/webmstk/qaa/events","assignees_url":"https://api.github.com/repos/webmstk/qaa/assignees{/user}","branches_url":"https://api.github.com/repos/webmstk/qaa/branches{/branch}","tags_url":"https://api.github.com/repos/webmstk/qaa/tags","blobs_url":"https://api.github.com/repos/webmstk/qaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webmstk/qaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webmstk/qaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/webmstk/qaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webmstk/qaa/statuses/{sha}","languages_url":"https://api.github.com/repos/webmstk/qaa/languages","stargazers_url":"https://api.github.com/repos/webmstk/qaa/stargazers","contributors_url":"https://api.github.com/repos/webmstk/qaa/contributors","subscribers_url":"https://api.github.com/repos/webmstk/qaa/subscribers","subscription_url":"https://api.github.com/repos/webmstk/qaa/subscription","commits_url":"https://api.github.com/repos/webmstk/qaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/webmstk/qaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/webmstk/qaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/webmstk/qaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/webmstk/qaa/contents/{+path}","compare_url":"https://api.github.com/repos/webmstk/qaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webmstk/qaa/merges","archive_url":"https://api.github.com/repos/webmstk/qaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webmstk/qaa/downloads","issues_url":"https://api.github.com/repos/webmstk/qaa/issues{/number}","pulls_url":"https://api.github.com/repos/webmstk/qaa/pulls{/number}","milestones_url":"https://api.github.com/repos/webmstk/qaa/milestones{/number}","notifications_url":"https://api.github.com/repos/webmstk/qaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webmstk/qaa/labels{/name}","releases_url":"https://api.github.com/repos/webmstk/qaa/releases{/id}","created_at":"2015-05-30T18:00:10Z","updated_at":"2015-05-30T18:01:36Z","pushed_at":"2015-11-16T11:22:00Z","git_url":"git://github.com/webmstk/qaa.git","ssh_url":"git@github.com:webmstk/qaa.git","clone_url":"https://github.com/webmstk/qaa.git","svn_url":"https://github.com/webmstk/qaa","homepage":null,"size":660,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"webmstk:master","ref":"master","sha":"80a0fc1643bb6330fb654c9495ae432766add0e0","user":{"login":"webmstk","id":10058472,"avatar_url":"https://avatars.githubusercontent.com/u/10058472?v=3","gravatar_id":"","url":"https://api.github.com/users/webmstk","html_url":"https://github.com/webmstk","followers_url":"https://api.github.com/users/webmstk/followers","following_url":"https://api.github.com/users/webmstk/following{/other_user}","gists_url":"https://api.github.com/users/webmstk/gists{/gist_id}","starred_url":"https://api.github.com/users/webmstk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmstk/subscriptions","organizations_url":"https://api.github.com/users/webmstk/orgs","repos_url":"https://api.github.com/users/webmstk/repos","events_url":"https://api.github.com/users/webmstk/events{/privacy}","received_events_url":"https://api.github.com/users/webmstk/received_events","type":"User","site_admin":false},"repo":{"id":36569251,"name":"qaa","full_name":"webmstk/qaa","owner":{"login":"webmstk","id":10058472,"avatar_url":"https://avatars.githubusercontent.com/u/10058472?v=3","gravatar_id":"","url":"https://api.github.com/users/webmstk","html_url":"https://github.com/webmstk","followers_url":"https://api.github.com/users/webmstk/followers","following_url":"https://api.github.com/users/webmstk/following{/other_user}","gists_url":"https://api.github.com/users/webmstk/gists{/gist_id}","starred_url":"https://api.github.com/users/webmstk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmstk/subscriptions","organizations_url":"https://api.github.com/users/webmstk/orgs","repos_url":"https://api.github.com/users/webmstk/repos","events_url":"https://api.github.com/users/webmstk/events{/privacy}","received_events_url":"https://api.github.com/users/webmstk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/webmstk/qaa","description":"Questions & Answers project","fork":false,"url":"https://api.github.com/repos/webmstk/qaa","forks_url":"https://api.github.com/repos/webmstk/qaa/forks","keys_url":"https://api.github.com/repos/webmstk/qaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webmstk/qaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webmstk/qaa/teams","hooks_url":"https://api.github.com/repos/webmstk/qaa/hooks","issue_events_url":"https://api.github.com/repos/webmstk/qaa/issues/events{/number}","events_url":"https://api.github.com/repos/webmstk/qaa/events","assignees_url":"https://api.github.com/repos/webmstk/qaa/assignees{/user}","branches_url":"https://api.github.com/repos/webmstk/qaa/branches{/branch}","tags_url":"https://api.github.com/repos/webmstk/qaa/tags","blobs_url":"https://api.github.com/repos/webmstk/qaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webmstk/qaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webmstk/qaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/webmstk/qaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webmstk/qaa/statuses/{sha}","languages_url":"https://api.github.com/repos/webmstk/qaa/languages","stargazers_url":"https://api.github.com/repos/webmstk/qaa/stargazers","contributors_url":"https://api.github.com/repos/webmstk/qaa/contributors","subscribers_url":"https://api.github.com/repos/webmstk/qaa/subscribers","subscription_url":"https://api.github.com/repos/webmstk/qaa/subscription","commits_url":"https://api.github.com/repos/webmstk/qaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/webmstk/qaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/webmstk/qaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/webmstk/qaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/webmstk/qaa/contents/{+path}","compare_url":"https://api.github.com/repos/webmstk/qaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webmstk/qaa/merges","archive_url":"https://api.github.com/repos/webmstk/qaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webmstk/qaa/downloads","issues_url":"https://api.github.com/repos/webmstk/qaa/issues{/number}","pulls_url":"https://api.github.com/repos/webmstk/qaa/pulls{/number}","milestones_url":"https://api.github.com/repos/webmstk/qaa/milestones{/number}","notifications_url":"https://api.github.com/repos/webmstk/qaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webmstk/qaa/labels{/name}","releases_url":"https://api.github.com/repos/webmstk/qaa/releases{/id}","created_at":"2015-05-30T18:00:10Z","updated_at":"2015-05-30T18:01:36Z","pushed_at":"2015-11-16T11:22:00Z","git_url":"git://github.com/webmstk/qaa.git","ssh_url":"git@github.com:webmstk/qaa.git","clone_url":"https://github.com/webmstk/qaa.git","svn_url":"https://github.com/webmstk/qaa","homepage":null,"size":660,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webmstk/qaa/pulls/15"},"html":{"href":"https://github.com/webmstk/qaa/pull/15"},"issue":{"href":"https://api.github.com/repos/webmstk/qaa/issues/15"},"comments":{"href":"https://api.github.com/repos/webmstk/qaa/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/webmstk/qaa/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/webmstk/qaa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webmstk/qaa/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/webmstk/qaa/statuses/d15d8f2709013ec342d4ce3299239e5d1b2e9e51"}}}}