{"action":"created","comment":{"url":"https://api.github.com/repos/Vixtir/test-task/pulls/comments/63274270","id":63274270,"diff_hunk":"@@ -0,0 +1,89 @@\n+require \"rails_helper\"\n+\n+RSpec.feature \"Vehicle managment\", :type => :feature do\n+  context \"root page\" do\n+    it \"has a create link\" do\n+\t  visit root_path\n+\t  expect(page).to have_link(\"Новый\")\n+\tend\n+\n+\tcontext \"page for create have a links: \" do\n+\t  before :each do\n+\t  \tvisit root_path\n+\t  \tfind_link(\"Новый\").click\n+\t  end\n+\n+\t  it \"create\" do\n+\t \texpect(page).to have_button(\"Создать Автомобиль\")\n+\t  end\n+\n+\t  it \"image downloading\" do\n+\t  \texpect(page).to have_link(\"изображение\")\n+\t  end\n+\n+\t  it \"move back\" do\n+\t  \texpect(page).to have_link(\"Назад\")\n+\t  end\n+\tend\n+\n+\tcontext \"fill the fields in create form\" do\n+      before :each do\n+      \tvisit new_vehicle_path\n+      end\n+\n+      it \"valid informations\" do\n+      \twithin(\"#new_vehicle\") do\n+  \t\t  fill_in 'Наименование автомобиля', :with => 'Jimmy'\n+  \t\t  fill_in 'Гос. номер', :with => 'A777AA 123'\n+  \t\t  fill_in 'Номер ПТС', :with => '16 ТВ 777777'\n+  \t\tend\n+  \t\tclick_on(\"Создать Автомобиль\")\n+  \t\texpect(page).to have_content(\"Автомобиль успешно создан\")\n+      end\n+\n+      it \"invalid informations\" do\n+      \twithin(\"#new_vehicle\") do\n+  \t\t  fill_in 'Наименование автомобиля', :with => 'Jimmy'\n+  \t\t  fill_in 'Гос. номер', :with => 'A777AA'\n+  \t\t  fill_in 'Номер ПТС', :with => '16 ТВ 777777'\n+  \t\tend\n+  \t\tclick_on(\"Создать Автомобиль\")\n+  \t\texpect(page).to have_content(\"необхоходимо исправить для сохранения записи\")\n+      end\n+\tend\n+\n+\tcontext \"edit Vehicle\" do\n+\t  \n+\t  before :each do\n+\t  \tvehicle = create(:vehicle)\n+\t  \tvisit root_path\n+\t  \tclick_on(\"Редактировать\")\t  \t\n+\t  end \n+\n+\t  it \"have a edit link\" do\n+\t  \texpect(page).to have_button(\"Сохранить Автомобиль\")\n+\t  end\n+\n+\t  it \"editing record\" do\n+\t  \tclick_button(\"Сохранить Автомобиль\")\n+\t  \texpect(page).to have_content(\"отредактирован\")\n+\t  end\n+\tend\n+\n+\tcontext \"delete vehicle\" do\n+\t  it \"have a delete link\" do\n+\t\tvehicle = create(:vehicle)\n+\t  \tvisit root_path\n+\t  \texpect(page).to have_link(\"Удалить\")\n+\t  end\n+\n+\t  it \"press delete link\" do\n+\t  \tvehicle = create(:vehicle)\n+\t  \tvisit root_path\n+\t  \tclick_on(\"Удалить\")\n+\t  \texpect(page).to have_content(\"Автомобиль успешно удален\")\n+\t  end\n+\tend\n+\n+  end\n+end","path":"spec/features/vehicle_spec.rb","position":89,"original_position":89,"commit_id":"8653f9ccdc60339610f3fcecf7b11b371c75aa03","original_commit_id":"8653f9ccdc60339610f3fcecf7b11b371c75aa03","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":"Final newline missing.","created_at":"2016-05-14T10:45:05Z","updated_at":"2016-05-14T10:45:05Z","html_url":"https://github.com/Vixtir/test-task/pull/4#discussion_r63274270","pull_request_url":"https://api.github.com/repos/Vixtir/test-task/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Vixtir/test-task/pulls/comments/63274270"},"html":{"href":"https://github.com/Vixtir/test-task/pull/4#discussion_r63274270"},"pull_request":{"href":"https://api.github.com/repos/Vixtir/test-task/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Vixtir/test-task/pulls/4","id":70088789,"html_url":"https://github.com/Vixtir/test-task/pull/4","diff_url":"https://github.com/Vixtir/test-task/pull/4.diff","patch_url":"https://github.com/Vixtir/test-task/pull/4.patch","issue_url":"https://api.github.com/repos/Vixtir/test-task/issues/4","number":4,"state":"open","locked":false,"title":"Tests","user":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-14T10:45:01Z","updated_at":"2016-05-14T10:45:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d46e0b00d94923b9d97e2034f25b09b3c83efa21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Vixtir/test-task/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Vixtir/test-task/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Vixtir/test-task/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vixtir/test-task/issues/4/comments","statuses_url":"https://api.github.com/repos/Vixtir/test-task/statuses/8653f9ccdc60339610f3fcecf7b11b371c75aa03","head":{"label":"Vixtir:tests","ref":"tests","sha":"8653f9ccdc60339610f3fcecf7b11b371c75aa03","user":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"repo":{"id":58079137,"name":"test-task","full_name":"Vixtir/test-task","owner":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vixtir/test-task","description":"","fork":false,"url":"https://api.github.com/repos/Vixtir/test-task","forks_url":"https://api.github.com/repos/Vixtir/test-task/forks","keys_url":"https://api.github.com/repos/Vixtir/test-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vixtir/test-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vixtir/test-task/teams","hooks_url":"https://api.github.com/repos/Vixtir/test-task/hooks","issue_events_url":"https://api.github.com/repos/Vixtir/test-task/issues/events{/number}","events_url":"https://api.github.com/repos/Vixtir/test-task/events","assignees_url":"https://api.github.com/repos/Vixtir/test-task/assignees{/user}","branches_url":"https://api.github.com/repos/Vixtir/test-task/branches{/branch}","tags_url":"https://api.github.com/repos/Vixtir/test-task/tags","blobs_url":"https://api.github.com/repos/Vixtir/test-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vixtir/test-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vixtir/test-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vixtir/test-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vixtir/test-task/statuses/{sha}","languages_url":"https://api.github.com/repos/Vixtir/test-task/languages","stargazers_url":"https://api.github.com/repos/Vixtir/test-task/stargazers","contributors_url":"https://api.github.com/repos/Vixtir/test-task/contributors","subscribers_url":"https://api.github.com/repos/Vixtir/test-task/subscribers","subscription_url":"https://api.github.com/repos/Vixtir/test-task/subscription","commits_url":"https://api.github.com/repos/Vixtir/test-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vixtir/test-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vixtir/test-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vixtir/test-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vixtir/test-task/contents/{+path}","compare_url":"https://api.github.com/repos/Vixtir/test-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vixtir/test-task/merges","archive_url":"https://api.github.com/repos/Vixtir/test-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vixtir/test-task/downloads","issues_url":"https://api.github.com/repos/Vixtir/test-task/issues{/number}","pulls_url":"https://api.github.com/repos/Vixtir/test-task/pulls{/number}","milestones_url":"https://api.github.com/repos/Vixtir/test-task/milestones{/number}","notifications_url":"https://api.github.com/repos/Vixtir/test-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vixtir/test-task/labels{/name}","releases_url":"https://api.github.com/repos/Vixtir/test-task/releases{/id}","deployments_url":"https://api.github.com/repos/Vixtir/test-task/deployments","created_at":"2016-05-04T19:36:34Z","updated_at":"2016-05-04T19:40:09Z","pushed_at":"2016-05-14T10:45:02Z","git_url":"git://github.com/Vixtir/test-task.git","ssh_url":"git@github.com:Vixtir/test-task.git","clone_url":"https://github.com/Vixtir/test-task.git","svn_url":"https://github.com/Vixtir/test-task","homepage":null,"size":621,"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":"Vixtir:master","ref":"master","sha":"7d5442fd64b371330ff54ba8db384d7e61ed79dc","user":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"repo":{"id":58079137,"name":"test-task","full_name":"Vixtir/test-task","owner":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vixtir/test-task","description":"","fork":false,"url":"https://api.github.com/repos/Vixtir/test-task","forks_url":"https://api.github.com/repos/Vixtir/test-task/forks","keys_url":"https://api.github.com/repos/Vixtir/test-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vixtir/test-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vixtir/test-task/teams","hooks_url":"https://api.github.com/repos/Vixtir/test-task/hooks","issue_events_url":"https://api.github.com/repos/Vixtir/test-task/issues/events{/number}","events_url":"https://api.github.com/repos/Vixtir/test-task/events","assignees_url":"https://api.github.com/repos/Vixtir/test-task/assignees{/user}","branches_url":"https://api.github.com/repos/Vixtir/test-task/branches{/branch}","tags_url":"https://api.github.com/repos/Vixtir/test-task/tags","blobs_url":"https://api.github.com/repos/Vixtir/test-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vixtir/test-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vixtir/test-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vixtir/test-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vixtir/test-task/statuses/{sha}","languages_url":"https://api.github.com/repos/Vixtir/test-task/languages","stargazers_url":"https://api.github.com/repos/Vixtir/test-task/stargazers","contributors_url":"https://api.github.com/repos/Vixtir/test-task/contributors","subscribers_url":"https://api.github.com/repos/Vixtir/test-task/subscribers","subscription_url":"https://api.github.com/repos/Vixtir/test-task/subscription","commits_url":"https://api.github.com/repos/Vixtir/test-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vixtir/test-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vixtir/test-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vixtir/test-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vixtir/test-task/contents/{+path}","compare_url":"https://api.github.com/repos/Vixtir/test-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vixtir/test-task/merges","archive_url":"https://api.github.com/repos/Vixtir/test-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vixtir/test-task/downloads","issues_url":"https://api.github.com/repos/Vixtir/test-task/issues{/number}","pulls_url":"https://api.github.com/repos/Vixtir/test-task/pulls{/number}","milestones_url":"https://api.github.com/repos/Vixtir/test-task/milestones{/number}","notifications_url":"https://api.github.com/repos/Vixtir/test-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vixtir/test-task/labels{/name}","releases_url":"https://api.github.com/repos/Vixtir/test-task/releases{/id}","deployments_url":"https://api.github.com/repos/Vixtir/test-task/deployments","created_at":"2016-05-04T19:36:34Z","updated_at":"2016-05-04T19:40:09Z","pushed_at":"2016-05-14T10:45:02Z","git_url":"git://github.com/Vixtir/test-task.git","ssh_url":"git@github.com:Vixtir/test-task.git","clone_url":"https://github.com/Vixtir/test-task.git","svn_url":"https://github.com/Vixtir/test-task","homepage":null,"size":621,"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/Vixtir/test-task/pulls/4"},"html":{"href":"https://github.com/Vixtir/test-task/pull/4"},"issue":{"href":"https://api.github.com/repos/Vixtir/test-task/issues/4"},"comments":{"href":"https://api.github.com/repos/Vixtir/test-task/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Vixtir/test-task/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Vixtir/test-task/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vixtir/test-task/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Vixtir/test-task/statuses/8653f9ccdc60339610f3fcecf7b11b371c75aa03"}}}}