{"action":"created","comment":{"url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/comments/42577328","id":42577328,"diff_hunk":"@@ -28,4 +28,47 @@\n     visit business_loans_path(business: business.slug)\n     expect(page).not_to have_content(\"Give me money!\")\n   end\n+\n+  scenario \"can't create a loan with a request date as of the current date\" do\n+    log_in_as(business_owner)\n+    click_link \"Request Loan\"\n+    fill_in \"loan[title]\", with: \"Give me money!\"\n+    fill_in \"loan[description]\", with: \"You don't know what you're missing\"\n+    fill_in \"loan[price]\", with: \"50.00\"\n+    fill_in \"loan[request_by_date]\", with: Date.today\n+    fill_in \"loan[repayment_date]\", with: \"21 Dec 2019\"\n+    fill_in \"loan[interest_rate]\", with: \"10\"\n+    select \"Arts\", from: \"loan[category_id]\"\n+    click_button \"Submit\"\n+    expect(page).to have_content(\"Danger Request Date Can't Be Today\")\n+  end\n+\n+  scenario \"can't create a loan with a repayment date in the past\" do\n+    log_in_as(business_owner)\n+    click_link \"Request Loan\"\n+    fill_in \"loan[title]\", with: \"Give me money!\"\n+    fill_in \"loan[description]\", with: \"You don't know what you're missing\"\n+    fill_in \"loan[price]\", with: \"50.00\"\n+    fill_in \"loan[request_by_date]\", with: Date.today\n+    fill_in \"loan[repayment_date]\", with: Date.today.prev_day\n+    fill_in \"loan[interest_rate]\", with: \"10\"\n+    select \"Arts\", from: \"loan[category_id]\"\n+    click_button \"Submit\"\n+    expect(page).to have_content(\"Danger Request Date Can't Be Today\")\n+    expect(page).to have_content(\"Danger Repayment Date Must Be After Request Date\")\n+  end\n+\n+  scenario \"can't create a loan with a repayment date ahead of the request date\" do\n+    log_in_as(business_owner)\n+    click_link \"Request Loan\"\n+    fill_in \"loan[title]\", with: \"Give me money!\"\n+    fill_in \"loan[description]\", with: \"You don't know what you're missing\"\n+    fill_in \"loan[price]\", with: \"50.00\"\n+    fill_in \"loan[request_by_date]\", with: Date.today.next_day\n+    fill_in \"loan[repayment_date]\", with: Date.today","path":"spec/features/business_owner_request_fund_spec.rb","position":41,"original_position":41,"commit_id":"d49622d1081c7fb18654d4adb65a8909539dfa83","original_commit_id":"d49622d1081c7fb18654d4adb65a8909539dfa83","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Do not use `Date.today` without zone. Use `Time.zone.today` instead.","created_at":"2015-10-21T02:18:59Z","updated_at":"2015-10-21T02:18:59Z","html_url":"https://github.com/BMR-PIVOT-1507/the_pivot/pull/115#discussion_r42577328","pull_request_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/comments/42577328"},"html":{"href":"https://github.com/BMR-PIVOT-1507/the_pivot/pull/115#discussion_r42577328"},"pull_request":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115","id":48269560,"html_url":"https://github.com/BMR-PIVOT-1507/the_pivot/pull/115","diff_url":"https://github.com/BMR-PIVOT-1507/the_pivot/pull/115.diff","patch_url":"https://github.com/BMR-PIVOT-1507/the_pivot/pull/115.patch","issue_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/115","number":115,"state":"open","locked":false,"title":"WIP 112 interest rate calc","user":{"login":"bad6e","id":10092063,"avatar_url":"https://avatars.githubusercontent.com/u/10092063?v=3","gravatar_id":"","url":"https://api.github.com/users/bad6e","html_url":"https://github.com/bad6e","followers_url":"https://api.github.com/users/bad6e/followers","following_url":"https://api.github.com/users/bad6e/following{/other_user}","gists_url":"https://api.github.com/users/bad6e/gists{/gist_id}","starred_url":"https://api.github.com/users/bad6e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bad6e/subscriptions","organizations_url":"https://api.github.com/users/bad6e/orgs","repos_url":"https://api.github.com/users/bad6e/repos","events_url":"https://api.github.com/users/bad6e/events{/privacy}","received_events_url":"https://api.github.com/users/bad6e/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-20T23:04:59Z","updated_at":"2015-10-21T02:18:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe55b58b1c64595603b1a4d88a0b1f9757efb8f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115/commits","review_comments_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115/comments","review_comment_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/115/comments","statuses_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/statuses/d49622d1081c7fb18654d4adb65a8909539dfa83","head":{"label":"BMR-PIVOT-1507:112-interest-rate-calc","ref":"112-interest-rate-calc","sha":"d49622d1081c7fb18654d4adb65a8909539dfa83","user":{"login":"BMR-PIVOT-1507","id":15092975,"avatar_url":"https://avatars.githubusercontent.com/u/15092975?v=3","gravatar_id":"","url":"https://api.github.com/users/BMR-PIVOT-1507","html_url":"https://github.com/BMR-PIVOT-1507","followers_url":"https://api.github.com/users/BMR-PIVOT-1507/followers","following_url":"https://api.github.com/users/BMR-PIVOT-1507/following{/other_user}","gists_url":"https://api.github.com/users/BMR-PIVOT-1507/gists{/gist_id}","starred_url":"https://api.github.com/users/BMR-PIVOT-1507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BMR-PIVOT-1507/subscriptions","organizations_url":"https://api.github.com/users/BMR-PIVOT-1507/orgs","repos_url":"https://api.github.com/users/BMR-PIVOT-1507/repos","events_url":"https://api.github.com/users/BMR-PIVOT-1507/events{/privacy}","received_events_url":"https://api.github.com/users/BMR-PIVOT-1507/received_events","type":"Organization","site_admin":false},"repo":{"id":44121752,"name":"the_pivot","full_name":"BMR-PIVOT-1507/the_pivot","owner":{"login":"BMR-PIVOT-1507","id":15092975,"avatar_url":"https://avatars.githubusercontent.com/u/15092975?v=3","gravatar_id":"","url":"https://api.github.com/users/BMR-PIVOT-1507","html_url":"https://github.com/BMR-PIVOT-1507","followers_url":"https://api.github.com/users/BMR-PIVOT-1507/followers","following_url":"https://api.github.com/users/BMR-PIVOT-1507/following{/other_user}","gists_url":"https://api.github.com/users/BMR-PIVOT-1507/gists{/gist_id}","starred_url":"https://api.github.com/users/BMR-PIVOT-1507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BMR-PIVOT-1507/subscriptions","organizations_url":"https://api.github.com/users/BMR-PIVOT-1507/orgs","repos_url":"https://api.github.com/users/BMR-PIVOT-1507/repos","events_url":"https://api.github.com/users/BMR-PIVOT-1507/events{/privacy}","received_events_url":"https://api.github.com/users/BMR-PIVOT-1507/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BMR-PIVOT-1507/the_pivot","description":"Rails App","fork":false,"url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot","forks_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/forks","keys_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/teams","hooks_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/events","assignees_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/tags","blobs_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/languages","stargazers_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/subscription","commits_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/merges","archive_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/downloads","issues_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/releases{/id}","created_at":"2015-10-12T17:07:30Z","updated_at":"2015-10-12T19:11:07Z","pushed_at":"2015-10-21T02:18:56Z","git_url":"git://github.com/BMR-PIVOT-1507/the_pivot.git","ssh_url":"git@github.com:BMR-PIVOT-1507/the_pivot.git","clone_url":"https://github.com/BMR-PIVOT-1507/the_pivot.git","svn_url":"https://github.com/BMR-PIVOT-1507/the_pivot","homepage":null,"size":1516,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":1,"default_branch":"master"}},"base":{"label":"BMR-PIVOT-1507:master","ref":"master","sha":"156c3da5167c3db707c5e91a763c9dac03ec27c3","user":{"login":"BMR-PIVOT-1507","id":15092975,"avatar_url":"https://avatars.githubusercontent.com/u/15092975?v=3","gravatar_id":"","url":"https://api.github.com/users/BMR-PIVOT-1507","html_url":"https://github.com/BMR-PIVOT-1507","followers_url":"https://api.github.com/users/BMR-PIVOT-1507/followers","following_url":"https://api.github.com/users/BMR-PIVOT-1507/following{/other_user}","gists_url":"https://api.github.com/users/BMR-PIVOT-1507/gists{/gist_id}","starred_url":"https://api.github.com/users/BMR-PIVOT-1507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BMR-PIVOT-1507/subscriptions","organizations_url":"https://api.github.com/users/BMR-PIVOT-1507/orgs","repos_url":"https://api.github.com/users/BMR-PIVOT-1507/repos","events_url":"https://api.github.com/users/BMR-PIVOT-1507/events{/privacy}","received_events_url":"https://api.github.com/users/BMR-PIVOT-1507/received_events","type":"Organization","site_admin":false},"repo":{"id":44121752,"name":"the_pivot","full_name":"BMR-PIVOT-1507/the_pivot","owner":{"login":"BMR-PIVOT-1507","id":15092975,"avatar_url":"https://avatars.githubusercontent.com/u/15092975?v=3","gravatar_id":"","url":"https://api.github.com/users/BMR-PIVOT-1507","html_url":"https://github.com/BMR-PIVOT-1507","followers_url":"https://api.github.com/users/BMR-PIVOT-1507/followers","following_url":"https://api.github.com/users/BMR-PIVOT-1507/following{/other_user}","gists_url":"https://api.github.com/users/BMR-PIVOT-1507/gists{/gist_id}","starred_url":"https://api.github.com/users/BMR-PIVOT-1507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BMR-PIVOT-1507/subscriptions","organizations_url":"https://api.github.com/users/BMR-PIVOT-1507/orgs","repos_url":"https://api.github.com/users/BMR-PIVOT-1507/repos","events_url":"https://api.github.com/users/BMR-PIVOT-1507/events{/privacy}","received_events_url":"https://api.github.com/users/BMR-PIVOT-1507/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BMR-PIVOT-1507/the_pivot","description":"Rails App","fork":false,"url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot","forks_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/forks","keys_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/teams","hooks_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/events","assignees_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/tags","blobs_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/languages","stargazers_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/subscription","commits_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/merges","archive_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/downloads","issues_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/releases{/id}","created_at":"2015-10-12T17:07:30Z","updated_at":"2015-10-12T19:11:07Z","pushed_at":"2015-10-21T02:18:56Z","git_url":"git://github.com/BMR-PIVOT-1507/the_pivot.git","ssh_url":"git@github.com:BMR-PIVOT-1507/the_pivot.git","clone_url":"https://github.com/BMR-PIVOT-1507/the_pivot.git","svn_url":"https://github.com/BMR-PIVOT-1507/the_pivot","homepage":null,"size":1516,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115"},"html":{"href":"https://github.com/BMR-PIVOT-1507/the_pivot/pull/115"},"issue":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/115"},"comments":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/BMR-PIVOT-1507/the_pivot/statuses/d49622d1081c7fb18654d4adb65a8909539dfa83"}}}}