{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/comments/33400128","id":33400128,"diff_hunk":"@@ -0,0 +1,36 @@\n+require \"spec_helper\"\n+require \"bank_accounts\"\n+\n+describe BankAccounts::Account do\n+  it \"responds to class method called new\" do\n+    expect(BankAccounts::Account).to respond_to(:new).with(2).arguments\n+  end\n+\n+  it \"raises an ArgumentError if negative number is passed for initial_balance\" do\n+    expect { BankAccounts::Account.new(4, -500) }.to raise_exception(ArgumentError)\n+  end\n+\n+  before :each do\n+      @account = BankAccounts::Account.new(1, 1000)\n+  end\n+\n+  it \"#balance returns the account balance\" do\n+    expect(@account.balance).to eq(1000)\n+  end\n+\n+  context \"#withdraw will: \" do","path":"spec/lib/bank_accounts/account_spec.rb","position":21,"original_position":21,"commit_id":"370ffea3921cc7cb8f7847ad7a6746937346f68c","original_commit_id":"370ffea3921cc7cb8f7847ad7a6746937346f68c","user":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"body":"This is a good use of context","created_at":"2015-06-26T22:05:10Z","updated_at":"2015-06-26T22:05:10Z","html_url":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts/pull/13#discussion_r33400128","pull_request_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/comments/33400128"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts/pull/13#discussion_r33400128"},"pull_request":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13","id":36593560,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts/pull/13","diff_url":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts/pull/13.diff","patch_url":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts/pull/13.patch","issue_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/issues/13","number":13,"state":"open","locked":false,"title":"Completed Bank Accounts (lunch)","user":{"login":"lilagrc","id":7612874,"avatar_url":"https://avatars.githubusercontent.com/u/7612874?v=3","gravatar_id":"","url":"https://api.github.com/users/lilagrc","html_url":"https://github.com/lilagrc","followers_url":"https://api.github.com/users/lilagrc/followers","following_url":"https://api.github.com/users/lilagrc/following{/other_user}","gists_url":"https://api.github.com/users/lilagrc/gists{/gist_id}","starred_url":"https://api.github.com/users/lilagrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilagrc/subscriptions","organizations_url":"https://api.github.com/users/lilagrc/orgs","repos_url":"https://api.github.com/users/lilagrc/repos","events_url":"https://api.github.com/users/lilagrc/events{/privacy}","received_events_url":"https://api.github.com/users/lilagrc/received_events","type":"User","site_admin":false},"body":"Completed the rspec tests and reqs for Bank Accounts through lunch. The files require pry, but I don't believe you need to require it as I used pry as a debugging tool. I made an attempt to refactor the specs to remove repetition, but I only seemed to make a mess of things, so went back to how I have them. I would love any tips or suggestions on how to refactor/optimize both the specs and the code -- I feel this is a weak point for me. Thanks!","created_at":"2015-06-01T01:19:58Z","updated_at":"2015-06-26T22:05:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57fbc99c5b52955860faeb8219836bc41020fec6","assignee":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13/commits","review_comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13/comments","review_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/issues/13/comments","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/statuses/370ffea3921cc7cb8f7847ad7a6746937346f68c","head":{"label":"lilagrc:lg/master","ref":"lg/master","sha":"370ffea3921cc7cb8f7847ad7a6746937346f68c","user":{"login":"lilagrc","id":7612874,"avatar_url":"https://avatars.githubusercontent.com/u/7612874?v=3","gravatar_id":"","url":"https://api.github.com/users/lilagrc","html_url":"https://github.com/lilagrc","followers_url":"https://api.github.com/users/lilagrc/followers","following_url":"https://api.github.com/users/lilagrc/following{/other_user}","gists_url":"https://api.github.com/users/lilagrc/gists{/gist_id}","starred_url":"https://api.github.com/users/lilagrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilagrc/subscriptions","organizations_url":"https://api.github.com/users/lilagrc/orgs","repos_url":"https://api.github.com/users/lilagrc/repos","events_url":"https://api.github.com/users/lilagrc/events{/privacy}","received_events_url":"https://api.github.com/users/lilagrc/received_events","type":"User","site_admin":false},"repo":{"id":36467455,"name":"C3Projects--BankAccounts","full_name":"lilagrc/C3Projects--BankAccounts","owner":{"login":"lilagrc","id":7612874,"avatar_url":"https://avatars.githubusercontent.com/u/7612874?v=3","gravatar_id":"","url":"https://api.github.com/users/lilagrc","html_url":"https://github.com/lilagrc","followers_url":"https://api.github.com/users/lilagrc/followers","following_url":"https://api.github.com/users/lilagrc/following{/other_user}","gists_url":"https://api.github.com/users/lilagrc/gists{/gist_id}","starred_url":"https://api.github.com/users/lilagrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilagrc/subscriptions","organizations_url":"https://api.github.com/users/lilagrc/orgs","repos_url":"https://api.github.com/users/lilagrc/repos","events_url":"https://api.github.com/users/lilagrc/events{/privacy}","received_events_url":"https://api.github.com/users/lilagrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lilagrc/C3Projects--BankAccounts","description":"","fork":true,"url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts","forks_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/forks","keys_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/teams","hooks_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/hooks","issue_events_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/issues/events{/number}","events_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/events","assignees_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/assignees{/user}","branches_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/branches{/branch}","tags_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/tags","blobs_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/statuses/{sha}","languages_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/languages","stargazers_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/stargazers","contributors_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/contributors","subscribers_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/subscribers","subscription_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/subscription","commits_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/contents/{+path}","compare_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/merges","archive_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/downloads","issues_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/issues{/number}","pulls_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/pulls{/number}","milestones_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/milestones{/number}","notifications_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/labels{/name}","releases_url":"https://api.github.com/repos/lilagrc/C3Projects--BankAccounts/releases{/id}","created_at":"2015-05-28T21:35:43Z","updated_at":"2015-05-28T21:16:52Z","pushed_at":"2015-06-01T01:14:12Z","git_url":"git://github.com/lilagrc/C3Projects--BankAccounts.git","ssh_url":"git@github.com:lilagrc/C3Projects--BankAccounts.git","clone_url":"https://github.com/lilagrc/C3Projects--BankAccounts.git","svn_url":"https://github.com/lilagrc/C3Projects--BankAccounts","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-Developers-Academy:lg/master","ref":"lg/master","sha":"e0836e26834b315d0c7dcf45e774828916afcc6b","user":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":36466643,"name":"C3Projects--BankAccounts","full_name":"Ada-Developers-Academy/C3Projects--BankAccounts","owner":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts","description":"","fork":false,"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts","forks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/forks","keys_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/teams","hooks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/hooks","issue_events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/events","assignees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/tags","blobs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/languages","stargazers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/stargazers","contributors_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/contributors","subscribers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/subscribers","subscription_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/subscription","commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/merges","archive_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/downloads","issues_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/labels{/name}","releases_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/releases{/id}","created_at":"2015-05-28T21:16:52Z","updated_at":"2015-05-28T21:16:52Z","pushed_at":"2015-06-26T21:19:35Z","git_url":"git://github.com/Ada-Developers-Academy/C3Projects--BankAccounts.git","ssh_url":"git@github.com:Ada-Developers-Academy/C3Projects--BankAccounts.git","clone_url":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts.git","svn_url":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts","homepage":null,"size":897,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":17,"forks":26,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--BankAccounts/pull/13"},"issue":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/issues/13"},"comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--BankAccounts/statuses/370ffea3921cc7cb8f7847ad7a6746937346f68c"}}}}