{"action":"created","issue":{"url":"https://api.github.com/repos/zursmansors/askme/issues/5","labels_url":"https://api.github.com/repos/zursmansors/askme/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/zursmansors/askme/issues/5/comments","events_url":"https://api.github.com/repos/zursmansors/askme/issues/5/events","html_url":"https://github.com/zursmansors/askme/pull/5","id":120406243,"number":5,"title":"Lesson 5","user":{"login":"zursmansors","id":10698996,"avatar_url":"https://avatars.githubusercontent.com/u/10698996?v=3","gravatar_id":"","url":"https://api.github.com/users/zursmansors","html_url":"https://github.com/zursmansors","followers_url":"https://api.github.com/users/zursmansors/followers","following_url":"https://api.github.com/users/zursmansors/following{/other_user}","gists_url":"https://api.github.com/users/zursmansors/gists{/gist_id}","starred_url":"https://api.github.com/users/zursmansors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zursmansors/subscriptions","organizations_url":"https://api.github.com/users/zursmansors/orgs","repos_url":"https://api.github.com/users/zursmansors/repos","events_url":"https://api.github.com/users/zursmansors/events{/privacy}","received_events_url":"https://api.github.com/users/zursmansors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T13:55:31Z","updated_at":"2015-12-04T14:09:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zursmansors/askme/pulls/5","html_url":"https://github.com/zursmansors/askme/pull/5","diff_url":"https://github.com/zursmansors/askme/pull/5.diff","patch_url":"https://github.com/zursmansors/askme/pull/5.patch"},"body":"Владимир, подскажи, пожалуйста, что я делаю не так. Бьюсь уже два дня, не проходят два теста:\r\n1.\r\nrspec spec/acceptance/question/delete_question_spec.rb\r\nFailures:\r\n  1) Delete question\r\n  In order to delete question\r\n  As authenticated user\r\n  I want to delete question\r\n Authenticated user tries to delete his own question\r\n     Failure/Error: visit question_path\r\n\r\n     ActionController::UrlGenerationError:\r\n       No route matches {:action=>\"show\", :controller=>\"questions\"} missing required keys: [:id]\r\n     # ./spec/acceptance/question/delete_question_spec.rb:15:in `block (2 levels) in <top (required)>'\r\n\r\nСоответственно, контроллер не удаляет вопрос из базы. Хотя в самой форме удаление происходит.\r\n\r\nQuestionsController DELETE #destroy question owner delete the question\r\n     Failure/Error: expect { delete :destroy, id: question }.to change(user.questions, :count).by(-1)\r\n       expected #count to have changed by -1, but was changed by 0\r\n\r\n2.\r\nrspec spec/acceptance/answer/delete_answer_spec.rb\r\n\r\n    Failure/Error: .center = button_to \"Delete answer\", answer, method: :delete\r\n\r\n     ActionView::Template::Error:\r\n       undefined method `answer_path'"},"comment":{"url":"https://api.github.com/repos/zursmansors/askme/issues/comments/161976568","html_url":"https://github.com/zursmansors/askme/pull/5#issuecomment-161976568","issue_url":"https://api.github.com/repos/zursmansors/askme/issues/5","id":161976568,"user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T14:09:54Z","updated_at":"2015-12-04T14:09:54Z","body":"Вторая ошибка из той же оперы: у тебя нет метода `answer_path`, так как у тебя ответ вложен в вопрос, а значит `question_answer_path`.\r\n\r\nВ первую очередь, учись читать ошибки, в них все уже написано. Они для этого и существуют."}}