{"action":"created","comment":{"url":"https://api.github.com/repos/Swift-App/swift-app/pulls/comments/93211899","pull_request_review_id":13733338,"id":93211899,"diff_hunk":"@@ -0,0 +1,50 @@\n+require 'rails_helper'\n+\n+RSpec.describe BankApplicationsController, type: :controller do\n+\tdescribe \"GET #new\" do\n+\t\tcontext \"user is logged in\" do\n+\t\t\tit \"renders the new template\" do\n+\t\t\t\tuser = FactoryGirl.create(:user)\n+\n+\t\t\t\tsign_in user\n+\t\t\t\tget :new\n+\n+\t\t\t\texpect(response).to render_template(:new)\n+\t\t\tend\n+\t\tend\n+\n+\t\tcontext \"user is not logged in\" do\n+\t\t\tit \"does not render the new template\" do\n+\t\t\t\tget :new \n+\n+\t\t\t\texpect(response).to redirect_to new_user_session_path\n+\t\t\tend\n+\t\tend\n+\tend\n+\n+\tdescribe \"POST #create\" do\n+\t\tcontext \"attributes are valid\" do\n+\t\t\tit \"creates a new bank application\" do\n+\t\t\t\tuser = FactoryGirl.create(:user)\n+\n+\t\t\t\tsign_in user\n+\t\t\t\texpect {\n+\t\t\t\t\tpost :create, bank_application: FactoryGirl.attributes_for(:bank_application)\n+\t\t\t\t}.to change(BankApplication, :count).by(1)\t\t\t\t\n+\t\t\tend\n+\t\tend\n+\n+\t\tcontext \"attributes are invalid\" do\n+\t\t\tit \"does not create a new bank application\" do\n+\t\t\t\tuser = FactoryGirl.create(:user)\n+\n+\t\t\t\tsign_in user\n+\t\t\t\texpect {\n+\t\t\t\t\tpost :create, bank_application: FactoryGirl.attributes_for(:bank_application, photo: nil)\n+\t\t\t\t}.to change(BankApplication, :count).by(0)\t\n+\t\t\t\t","path":"spec/controllers/bank_applications_controller_spec.rb","position":45,"original_position":45,"commit_id":"f1bc28435875273504d2ea0b5e55ab80682412ad","original_commit_id":"f1bc28435875273504d2ea0b5e55ab80682412ad","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":"Tab detected.<br>Trailing whitespace detected.","created_at":"2016-12-20T10:43:17Z","updated_at":"2016-12-20T10:43:17Z","html_url":"https://github.com/Swift-App/swift-app/pull/17#discussion_r93211899","pull_request_url":"https://api.github.com/repos/Swift-App/swift-app/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/Swift-App/swift-app/pulls/comments/93211899"},"html":{"href":"https://github.com/Swift-App/swift-app/pull/17#discussion_r93211899"},"pull_request":{"href":"https://api.github.com/repos/Swift-App/swift-app/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/Swift-App/swift-app/pulls/17","id":98724751,"html_url":"https://github.com/Swift-App/swift-app/pull/17","diff_url":"https://github.com/Swift-App/swift-app/pull/17.diff","patch_url":"https://github.com/Swift-App/swift-app/pull/17.patch","issue_url":"https://api.github.com/repos/Swift-App/swift-app/issues/17","number":17,"state":"closed","locked":false,"title":"Steps","user":{"login":"takehiromouri","id":13539307,"avatar_url":"https://avatars.githubusercontent.com/u/13539307?v=3","gravatar_id":"","url":"https://api.github.com/users/takehiromouri","html_url":"https://github.com/takehiromouri","followers_url":"https://api.github.com/users/takehiromouri/followers","following_url":"https://api.github.com/users/takehiromouri/following{/other_user}","gists_url":"https://api.github.com/users/takehiromouri/gists{/gist_id}","starred_url":"https://api.github.com/users/takehiromouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takehiromouri/subscriptions","organizations_url":"https://api.github.com/users/takehiromouri/orgs","repos_url":"https://api.github.com/users/takehiromouri/repos","events_url":"https://api.github.com/users/takehiromouri/events{/privacy}","received_events_url":"https://api.github.com/users/takehiromouri/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-20T10:42:56Z","updated_at":"2016-12-20T10:43:17Z","closed_at":"2016-12-20T10:43:02Z","merged_at":"2016-12-20T10:43:02Z","merge_commit_sha":"bcd6cf75a6a949ad377a3b61d0e8f2902f006538","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Swift-App/swift-app/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Swift-App/swift-app/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Swift-App/swift-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Swift-App/swift-app/issues/17/comments","statuses_url":"https://api.github.com/repos/Swift-App/swift-app/statuses/f1bc28435875273504d2ea0b5e55ab80682412ad","head":{"label":"Swift-App:steps","ref":"steps","sha":"f1bc28435875273504d2ea0b5e55ab80682412ad","user":{"login":"Swift-App","id":22450853,"avatar_url":"https://avatars.githubusercontent.com/u/22450853?v=3","gravatar_id":"","url":"https://api.github.com/users/Swift-App","html_url":"https://github.com/Swift-App","followers_url":"https://api.github.com/users/Swift-App/followers","following_url":"https://api.github.com/users/Swift-App/following{/other_user}","gists_url":"https://api.github.com/users/Swift-App/gists{/gist_id}","starred_url":"https://api.github.com/users/Swift-App/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swift-App/subscriptions","organizations_url":"https://api.github.com/users/Swift-App/orgs","repos_url":"https://api.github.com/users/Swift-App/repos","events_url":"https://api.github.com/users/Swift-App/events{/privacy}","received_events_url":"https://api.github.com/users/Swift-App/received_events","type":"Organization","site_admin":false},"repo":{"id":69051318,"name":"swift-app","full_name":"Swift-App/swift-app","owner":{"login":"Swift-App","id":22450853,"avatar_url":"https://avatars.githubusercontent.com/u/22450853?v=3","gravatar_id":"","url":"https://api.github.com/users/Swift-App","html_url":"https://github.com/Swift-App","followers_url":"https://api.github.com/users/Swift-App/followers","following_url":"https://api.github.com/users/Swift-App/following{/other_user}","gists_url":"https://api.github.com/users/Swift-App/gists{/gist_id}","starred_url":"https://api.github.com/users/Swift-App/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swift-App/subscriptions","organizations_url":"https://api.github.com/users/Swift-App/orgs","repos_url":"https://api.github.com/users/Swift-App/repos","events_url":"https://api.github.com/users/Swift-App/events{/privacy}","received_events_url":"https://api.github.com/users/Swift-App/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Swift-App/swift-app","description":"Job Portal/Labor Management System","fork":false,"url":"https://api.github.com/repos/Swift-App/swift-app","forks_url":"https://api.github.com/repos/Swift-App/swift-app/forks","keys_url":"https://api.github.com/repos/Swift-App/swift-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Swift-App/swift-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Swift-App/swift-app/teams","hooks_url":"https://api.github.com/repos/Swift-App/swift-app/hooks","issue_events_url":"https://api.github.com/repos/Swift-App/swift-app/issues/events{/number}","events_url":"https://api.github.com/repos/Swift-App/swift-app/events","assignees_url":"https://api.github.com/repos/Swift-App/swift-app/assignees{/user}","branches_url":"https://api.github.com/repos/Swift-App/swift-app/branches{/branch}","tags_url":"https://api.github.com/repos/Swift-App/swift-app/tags","blobs_url":"https://api.github.com/repos/Swift-App/swift-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Swift-App/swift-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Swift-App/swift-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Swift-App/swift-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Swift-App/swift-app/statuses/{sha}","languages_url":"https://api.github.com/repos/Swift-App/swift-app/languages","stargazers_url":"https://api.github.com/repos/Swift-App/swift-app/stargazers","contributors_url":"https://api.github.com/repos/Swift-App/swift-app/contributors","subscribers_url":"https://api.github.com/repos/Swift-App/swift-app/subscribers","subscription_url":"https://api.github.com/repos/Swift-App/swift-app/subscription","commits_url":"https://api.github.com/repos/Swift-App/swift-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Swift-App/swift-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Swift-App/swift-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Swift-App/swift-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Swift-App/swift-app/contents/{+path}","compare_url":"https://api.github.com/repos/Swift-App/swift-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Swift-App/swift-app/merges","archive_url":"https://api.github.com/repos/Swift-App/swift-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Swift-App/swift-app/downloads","issues_url":"https://api.github.com/repos/Swift-App/swift-app/issues{/number}","pulls_url":"https://api.github.com/repos/Swift-App/swift-app/pulls{/number}","milestones_url":"https://api.github.com/repos/Swift-App/swift-app/milestones{/number}","notifications_url":"https://api.github.com/repos/Swift-App/swift-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Swift-App/swift-app/labels{/name}","releases_url":"https://api.github.com/repos/Swift-App/swift-app/releases{/id}","deployments_url":"https://api.github.com/repos/Swift-App/swift-app/deployments","created_at":"2016-09-23T18:37:28Z","updated_at":"2016-11-03T05:25:58Z","pushed_at":"2016-12-20T10:43:03Z","git_url":"git://github.com/Swift-App/swift-app.git","ssh_url":"git@github.com:Swift-App/swift-app.git","clone_url":"https://github.com/Swift-App/swift-app.git","svn_url":"https://github.com/Swift-App/swift-app","homepage":"","size":16400,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Swift-App:master","ref":"master","sha":"61c670199ccab502908e8fffbc4dc0f11512d336","user":{"login":"Swift-App","id":22450853,"avatar_url":"https://avatars.githubusercontent.com/u/22450853?v=3","gravatar_id":"","url":"https://api.github.com/users/Swift-App","html_url":"https://github.com/Swift-App","followers_url":"https://api.github.com/users/Swift-App/followers","following_url":"https://api.github.com/users/Swift-App/following{/other_user}","gists_url":"https://api.github.com/users/Swift-App/gists{/gist_id}","starred_url":"https://api.github.com/users/Swift-App/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swift-App/subscriptions","organizations_url":"https://api.github.com/users/Swift-App/orgs","repos_url":"https://api.github.com/users/Swift-App/repos","events_url":"https://api.github.com/users/Swift-App/events{/privacy}","received_events_url":"https://api.github.com/users/Swift-App/received_events","type":"Organization","site_admin":false},"repo":{"id":69051318,"name":"swift-app","full_name":"Swift-App/swift-app","owner":{"login":"Swift-App","id":22450853,"avatar_url":"https://avatars.githubusercontent.com/u/22450853?v=3","gravatar_id":"","url":"https://api.github.com/users/Swift-App","html_url":"https://github.com/Swift-App","followers_url":"https://api.github.com/users/Swift-App/followers","following_url":"https://api.github.com/users/Swift-App/following{/other_user}","gists_url":"https://api.github.com/users/Swift-App/gists{/gist_id}","starred_url":"https://api.github.com/users/Swift-App/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swift-App/subscriptions","organizations_url":"https://api.github.com/users/Swift-App/orgs","repos_url":"https://api.github.com/users/Swift-App/repos","events_url":"https://api.github.com/users/Swift-App/events{/privacy}","received_events_url":"https://api.github.com/users/Swift-App/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Swift-App/swift-app","description":"Job Portal/Labor Management System","fork":false,"url":"https://api.github.com/repos/Swift-App/swift-app","forks_url":"https://api.github.com/repos/Swift-App/swift-app/forks","keys_url":"https://api.github.com/repos/Swift-App/swift-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Swift-App/swift-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Swift-App/swift-app/teams","hooks_url":"https://api.github.com/repos/Swift-App/swift-app/hooks","issue_events_url":"https://api.github.com/repos/Swift-App/swift-app/issues/events{/number}","events_url":"https://api.github.com/repos/Swift-App/swift-app/events","assignees_url":"https://api.github.com/repos/Swift-App/swift-app/assignees{/user}","branches_url":"https://api.github.com/repos/Swift-App/swift-app/branches{/branch}","tags_url":"https://api.github.com/repos/Swift-App/swift-app/tags","blobs_url":"https://api.github.com/repos/Swift-App/swift-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Swift-App/swift-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Swift-App/swift-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Swift-App/swift-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Swift-App/swift-app/statuses/{sha}","languages_url":"https://api.github.com/repos/Swift-App/swift-app/languages","stargazers_url":"https://api.github.com/repos/Swift-App/swift-app/stargazers","contributors_url":"https://api.github.com/repos/Swift-App/swift-app/contributors","subscribers_url":"https://api.github.com/repos/Swift-App/swift-app/subscribers","subscription_url":"https://api.github.com/repos/Swift-App/swift-app/subscription","commits_url":"https://api.github.com/repos/Swift-App/swift-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Swift-App/swift-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Swift-App/swift-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Swift-App/swift-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Swift-App/swift-app/contents/{+path}","compare_url":"https://api.github.com/repos/Swift-App/swift-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Swift-App/swift-app/merges","archive_url":"https://api.github.com/repos/Swift-App/swift-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Swift-App/swift-app/downloads","issues_url":"https://api.github.com/repos/Swift-App/swift-app/issues{/number}","pulls_url":"https://api.github.com/repos/Swift-App/swift-app/pulls{/number}","milestones_url":"https://api.github.com/repos/Swift-App/swift-app/milestones{/number}","notifications_url":"https://api.github.com/repos/Swift-App/swift-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Swift-App/swift-app/labels{/name}","releases_url":"https://api.github.com/repos/Swift-App/swift-app/releases{/id}","deployments_url":"https://api.github.com/repos/Swift-App/swift-app/deployments","created_at":"2016-09-23T18:37:28Z","updated_at":"2016-11-03T05:25:58Z","pushed_at":"2016-12-20T10:43:03Z","git_url":"git://github.com/Swift-App/swift-app.git","ssh_url":"git@github.com:Swift-App/swift-app.git","clone_url":"https://github.com/Swift-App/swift-app.git","svn_url":"https://github.com/Swift-App/swift-app","homepage":"","size":16400,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Swift-App/swift-app/pulls/17"},"html":{"href":"https://github.com/Swift-App/swift-app/pull/17"},"issue":{"href":"https://api.github.com/repos/Swift-App/swift-app/issues/17"},"comments":{"href":"https://api.github.com/repos/Swift-App/swift-app/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Swift-App/swift-app/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Swift-App/swift-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Swift-App/swift-app/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Swift-App/swift-app/statuses/f1bc28435875273504d2ea0b5e55ab80682412ad"}}}}
{"actor":{"display_login":"houndci-bot"}}