{"action":"created","comment":{"url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/comments/29692272","id":29692272,"diff_hunk":"@@ -0,0 +1,64 @@\n+require 'address_book'\n+\n+RSpec.describe AddressBook, \"add_entry\" do\n+  book = AddressBook.new()\n+  context \"Testing adding an entry\" do\n+    it \"Tests adding an entry to the AddressBook class\" do\n+      name = 'Rob Madden'\n+      phone_number = '630.768.6995'\n+      email = 'madden.rob@gmail.com'\n+      book.add_entry(name, phone_number, email)\n+      bookSize = book.entries.size\n+      expect $bookSize == 1\n+\n+      entry = book.entries.at(0)\n+      expect entry.name.eql? name\n+      expect entry.phone_number.eql? phone_number\n+      expect entry.email.eql? email\n+    end\n+  end\n+\n+  context \"Testing add_from_csv\" do\n+    it \"Tests the csv import process\" do\n+      book.add_from_csv(\"entries.csv\")\n+      bookSize = book.entries.size\n+      expect $bookSize == 5\n+\n+      entry = book.entries.at(0)\n+      expect entry.name.eql? \"Joe\"\n+      expect entry.phone_number.eql? \"291-291-9291\"\n+      expect entry.email.eql? \"joe@blocmail.com\"\n+\n+      entry = book.entries.at(1)\n+      expect entry.name.eql? \"Sally\"\n+      expect entry.phone_number.eql? \"492-299-1931\"\n+      expect entry.email.eql? \"sally@blocmail.com\"\n+\n+      entry = book.entries.at(2)\n+      expect entry.name.eql? \"Bob\"\n+      expect entry.phone_number.eql? \"839-822-7831\"\n+      expect entry.email.eql? \"bob@blocmail.com\"\n+\n+      entry = book.entries.at(3)\n+      expect entry.name.eql? \"Bill\"\n+      expect entry.phone_number.eql? \"783-134-9771\"\n+      expect entry.email.eql? \"bill@blocmail.com\"\n+\n+      entry = book.entries.at(4)\n+      expect entry.name.eql? \"Sussie\"\n+      expect entry.phone_number.eql? \"831-883-1099\"\n+      expect entry.email.eql? \"sussie@blocmail.com\"\n+\n+    end\n+  end\n+\n+  context \"Testing binary_search\" do\n+    it \"Tests the binary_search method\" do\n+      entry = book.binary_search(\"Bob\")\n+      expect entry.name.eql? \"Rob Madden\"\n+      expect entry.phone_number.eql? \"630.768.6995\"\n+      expect entry.email.eql? \"madden.rob@gmail.com\"","path":"specs/address_book_spec.rb","position":60,"original_position":60,"commit_id":"7370d7f8cc3dfb12c04447faf10286aa26fe7b07","original_commit_id":"7370d7f8cc3dfb12c04447faf10286aa26fe7b07","user":{"login":"robmadden","id":465007,"avatar_url":"https://avatars.githubusercontent.com/u/465007?v=3","gravatar_id":"","url":"https://api.github.com/users/robmadden","html_url":"https://github.com/robmadden","followers_url":"https://api.github.com/users/robmadden/followers","following_url":"https://api.github.com/users/robmadden/following{/other_user}","gists_url":"https://api.github.com/users/robmadden/gists{/gist_id}","starred_url":"https://api.github.com/users/robmadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmadden/subscriptions","organizations_url":"https://api.github.com/users/robmadden/orgs","repos_url":"https://api.github.com/users/robmadden/repos","events_url":"https://api.github.com/users/robmadden/events{/privacy}","received_events_url":"https://api.github.com/users/robmadden/received_events","type":"User","site_admin":false},"body":"lol, yes, yes it is, oops.","created_at":"2015-05-05T17:32:40Z","updated_at":"2015-05-05T17:32:40Z","html_url":"https://github.com/Bloc/ruby-address-book/pull/19#discussion_r29692272","pull_request_url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/comments/29692272"},"html":{"href":"https://github.com/Bloc/ruby-address-book/pull/19#discussion_r29692272"},"pull_request":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/19","id":34687033,"html_url":"https://github.com/Bloc/ruby-address-book/pull/19","diff_url":"https://github.com/Bloc/ruby-address-book/pull/19.diff","patch_url":"https://github.com/Bloc/ruby-address-book/pull/19.patch","issue_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues/19","number":19,"state":"open","locked":false,"title":"Tests","user":{"login":"robmadden","id":465007,"avatar_url":"https://avatars.githubusercontent.com/u/465007?v=3","gravatar_id":"","url":"https://api.github.com/users/robmadden","html_url":"https://github.com/robmadden","followers_url":"https://api.github.com/users/robmadden/followers","following_url":"https://api.github.com/users/robmadden/following{/other_user}","gists_url":"https://api.github.com/users/robmadden/gists{/gist_id}","starred_url":"https://api.github.com/users/robmadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmadden/subscriptions","organizations_url":"https://api.github.com/users/robmadden/orgs","repos_url":"https://api.github.com/users/robmadden/repos","events_url":"https://api.github.com/users/robmadden/events{/privacy}","received_events_url":"https://api.github.com/users/robmadden/received_events","type":"User","site_admin":false},"body":"@bmneely ","created_at":"2015-05-05T00:01:14Z","updated_at":"2015-05-05T17:32:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d713f1c7bf13f36d6adb6655976c49628ed03db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues/19/comments","statuses_url":"https://api.github.com/repos/Bloc/ruby-address-book/statuses/7370d7f8cc3dfb12c04447faf10286aa26fe7b07","head":{"label":"Bloc:tests","ref":"tests","sha":"7370d7f8cc3dfb12c04447faf10286aa26fe7b07","user":{"login":"Bloc","id":1441485,"avatar_url":"https://avatars.githubusercontent.com/u/1441485?v=3","gravatar_id":"","url":"https://api.github.com/users/Bloc","html_url":"https://github.com/Bloc","followers_url":"https://api.github.com/users/Bloc/followers","following_url":"https://api.github.com/users/Bloc/following{/other_user}","gists_url":"https://api.github.com/users/Bloc/gists{/gist_id}","starred_url":"https://api.github.com/users/Bloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bloc/subscriptions","organizations_url":"https://api.github.com/users/Bloc/orgs","repos_url":"https://api.github.com/users/Bloc/repos","events_url":"https://api.github.com/users/Bloc/events{/privacy}","received_events_url":"https://api.github.com/users/Bloc/received_events","type":"Organization","site_admin":false},"repo":{"id":34822376,"name":"ruby-address-book","full_name":"Bloc/ruby-address-book","owner":{"login":"Bloc","id":1441485,"avatar_url":"https://avatars.githubusercontent.com/u/1441485?v=3","gravatar_id":"","url":"https://api.github.com/users/Bloc","html_url":"https://github.com/Bloc","followers_url":"https://api.github.com/users/Bloc/followers","following_url":"https://api.github.com/users/Bloc/following{/other_user}","gists_url":"https://api.github.com/users/Bloc/gists{/gist_id}","starred_url":"https://api.github.com/users/Bloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bloc/subscriptions","organizations_url":"https://api.github.com/users/Bloc/orgs","repos_url":"https://api.github.com/users/Bloc/repos","events_url":"https://api.github.com/users/Bloc/events{/privacy}","received_events_url":"https://api.github.com/users/Bloc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bloc/ruby-address-book","description":"A command-line address book written in Ruby.","fork":false,"url":"https://api.github.com/repos/Bloc/ruby-address-book","forks_url":"https://api.github.com/repos/Bloc/ruby-address-book/forks","keys_url":"https://api.github.com/repos/Bloc/ruby-address-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bloc/ruby-address-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bloc/ruby-address-book/teams","hooks_url":"https://api.github.com/repos/Bloc/ruby-address-book/hooks","issue_events_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues/events{/number}","events_url":"https://api.github.com/repos/Bloc/ruby-address-book/events","assignees_url":"https://api.github.com/repos/Bloc/ruby-address-book/assignees{/user}","branches_url":"https://api.github.com/repos/Bloc/ruby-address-book/branches{/branch}","tags_url":"https://api.github.com/repos/Bloc/ruby-address-book/tags","blobs_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bloc/ruby-address-book/statuses/{sha}","languages_url":"https://api.github.com/repos/Bloc/ruby-address-book/languages","stargazers_url":"https://api.github.com/repos/Bloc/ruby-address-book/stargazers","contributors_url":"https://api.github.com/repos/Bloc/ruby-address-book/contributors","subscribers_url":"https://api.github.com/repos/Bloc/ruby-address-book/subscribers","subscription_url":"https://api.github.com/repos/Bloc/ruby-address-book/subscription","commits_url":"https://api.github.com/repos/Bloc/ruby-address-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bloc/ruby-address-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bloc/ruby-address-book/contents/{+path}","compare_url":"https://api.github.com/repos/Bloc/ruby-address-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bloc/ruby-address-book/merges","archive_url":"https://api.github.com/repos/Bloc/ruby-address-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bloc/ruby-address-book/downloads","issues_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues{/number}","pulls_url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls{/number}","milestones_url":"https://api.github.com/repos/Bloc/ruby-address-book/milestones{/number}","notifications_url":"https://api.github.com/repos/Bloc/ruby-address-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bloc/ruby-address-book/labels{/name}","releases_url":"https://api.github.com/repos/Bloc/ruby-address-book/releases{/id}","created_at":"2015-04-29T22:51:40Z","updated_at":"2015-05-04T22:09:47Z","pushed_at":"2015-05-05T02:07:38Z","git_url":"git://github.com/Bloc/ruby-address-book.git","ssh_url":"git@github.com:Bloc/ruby-address-book.git","clone_url":"https://github.com/Bloc/ruby-address-book.git","svn_url":"https://github.com/Bloc/ruby-address-book","homepage":null,"size":0,"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":"Bloc:master","ref":"master","sha":"9f02313d02a1559a078b06a3865b91a539b13133","user":{"login":"Bloc","id":1441485,"avatar_url":"https://avatars.githubusercontent.com/u/1441485?v=3","gravatar_id":"","url":"https://api.github.com/users/Bloc","html_url":"https://github.com/Bloc","followers_url":"https://api.github.com/users/Bloc/followers","following_url":"https://api.github.com/users/Bloc/following{/other_user}","gists_url":"https://api.github.com/users/Bloc/gists{/gist_id}","starred_url":"https://api.github.com/users/Bloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bloc/subscriptions","organizations_url":"https://api.github.com/users/Bloc/orgs","repos_url":"https://api.github.com/users/Bloc/repos","events_url":"https://api.github.com/users/Bloc/events{/privacy}","received_events_url":"https://api.github.com/users/Bloc/received_events","type":"Organization","site_admin":false},"repo":{"id":34822376,"name":"ruby-address-book","full_name":"Bloc/ruby-address-book","owner":{"login":"Bloc","id":1441485,"avatar_url":"https://avatars.githubusercontent.com/u/1441485?v=3","gravatar_id":"","url":"https://api.github.com/users/Bloc","html_url":"https://github.com/Bloc","followers_url":"https://api.github.com/users/Bloc/followers","following_url":"https://api.github.com/users/Bloc/following{/other_user}","gists_url":"https://api.github.com/users/Bloc/gists{/gist_id}","starred_url":"https://api.github.com/users/Bloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bloc/subscriptions","organizations_url":"https://api.github.com/users/Bloc/orgs","repos_url":"https://api.github.com/users/Bloc/repos","events_url":"https://api.github.com/users/Bloc/events{/privacy}","received_events_url":"https://api.github.com/users/Bloc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bloc/ruby-address-book","description":"A command-line address book written in Ruby.","fork":false,"url":"https://api.github.com/repos/Bloc/ruby-address-book","forks_url":"https://api.github.com/repos/Bloc/ruby-address-book/forks","keys_url":"https://api.github.com/repos/Bloc/ruby-address-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bloc/ruby-address-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bloc/ruby-address-book/teams","hooks_url":"https://api.github.com/repos/Bloc/ruby-address-book/hooks","issue_events_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues/events{/number}","events_url":"https://api.github.com/repos/Bloc/ruby-address-book/events","assignees_url":"https://api.github.com/repos/Bloc/ruby-address-book/assignees{/user}","branches_url":"https://api.github.com/repos/Bloc/ruby-address-book/branches{/branch}","tags_url":"https://api.github.com/repos/Bloc/ruby-address-book/tags","blobs_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bloc/ruby-address-book/statuses/{sha}","languages_url":"https://api.github.com/repos/Bloc/ruby-address-book/languages","stargazers_url":"https://api.github.com/repos/Bloc/ruby-address-book/stargazers","contributors_url":"https://api.github.com/repos/Bloc/ruby-address-book/contributors","subscribers_url":"https://api.github.com/repos/Bloc/ruby-address-book/subscribers","subscription_url":"https://api.github.com/repos/Bloc/ruby-address-book/subscription","commits_url":"https://api.github.com/repos/Bloc/ruby-address-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bloc/ruby-address-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bloc/ruby-address-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bloc/ruby-address-book/contents/{+path}","compare_url":"https://api.github.com/repos/Bloc/ruby-address-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bloc/ruby-address-book/merges","archive_url":"https://api.github.com/repos/Bloc/ruby-address-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bloc/ruby-address-book/downloads","issues_url":"https://api.github.com/repos/Bloc/ruby-address-book/issues{/number}","pulls_url":"https://api.github.com/repos/Bloc/ruby-address-book/pulls{/number}","milestones_url":"https://api.github.com/repos/Bloc/ruby-address-book/milestones{/number}","notifications_url":"https://api.github.com/repos/Bloc/ruby-address-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bloc/ruby-address-book/labels{/name}","releases_url":"https://api.github.com/repos/Bloc/ruby-address-book/releases{/id}","created_at":"2015-04-29T22:51:40Z","updated_at":"2015-05-04T22:09:47Z","pushed_at":"2015-05-05T02:07:38Z","git_url":"git://github.com/Bloc/ruby-address-book.git","ssh_url":"git@github.com:Bloc/ruby-address-book.git","clone_url":"https://github.com/Bloc/ruby-address-book.git","svn_url":"https://github.com/Bloc/ruby-address-book","homepage":null,"size":0,"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/Bloc/ruby-address-book/pulls/19"},"html":{"href":"https://github.com/Bloc/ruby-address-book/pull/19"},"issue":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/issues/19"},"comments":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Bloc/ruby-address-book/statuses/7370d7f8cc3dfb12c04447faf10286aa26fe7b07"}}}}