{"action":"created","comment":{"url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/comments/188787110","pull_request_review_id":120837645,"id":188787110,"diff_hunk":"@@ -48,18 +48,38 @@ def test_it_has_a_character_map\n     assert_equal 39, e.character_map.length\n   end\n \n+  def test_it_can_calculate_actual_shifts\n+    e = Encryptor.new(\"abz\", \"89768\")\n+    assert_equal [19, 22, 0, 33], e.actual_shift\n+  end\n+\n   def test_it_can_encrypt_a_character\n-    e = Encryptor.new(\"mno\",\"01234\", Time.new(2018,05,14))\n-    assert_equal \"v2a\", e.encrypt\n+    e = Encryptor.new(\"abz\",\"89768\", Time.new(2018,05,14))\n+    assert_equal [0, 1, 25], e.current_index\n+  end\n+\n+  def test_it_can_find_new_index\n+    e = Encryptor.new(\"abz\",\"89768\", Time.new(2018,05,14))\n+    assert_equal [19, 23, 25], e.find_new_index\n+  end\n+\n+  def test_it_can_encrypt_three_letters\n+    e = Encryptor.new(\"abz\",\"89768\", Time.new(2018,05,14))\n+    assert_equal 'txz', e.encrypt\n+  end\n+\n+  def test_it_can_encrypt_multiple_words\n+    e = Encryptor.new(\"this is a test\",\"89768\", Time.new(2018,05,14))\n+    assert_equal [38, 29, 8, 12, 16, 30, 18, 30, 19, 19, 19, 37, 37, 2], e.actual_index\n   end\n \n-  def test_it_can_encrypt_a_whole_message\n-    e = Encryptor.new(\"phone booth number 1\",\"01234\", Time.new(2018,05,14))\n-    assert_equal \"ywamnm0nx869w9.an6w0\", e.encrypt\n+  def test_it_can_encrypt_total_number_characters\n+    e = Encryptor.new(\"this is so secret ..end..\")","path":"test/encryptor_test.rb","position":76,"original_position":76,"commit_id":"d6b986e33e3f6405b38d17587c57d48f0799dc7c","original_commit_id":"d6b986e33e3f6405b38d17587c57d48f0799dc7c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2018-05-16T22:08:02Z","updated_at":"2018-05-16T22:08:03Z","html_url":"https://github.com/LucasAlderfer/enigma/pull/15#discussion_r188787110","pull_request_url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/comments/188787110"},"html":{"href":"https://github.com/LucasAlderfer/enigma/pull/15#discussion_r188787110"},"pull_request":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15","id":188574447,"html_url":"https://github.com/LucasAlderfer/enigma/pull/15","diff_url":"https://github.com/LucasAlderfer/enigma/pull/15.diff","patch_url":"https://github.com/LucasAlderfer/enigma/pull/15.patch","issue_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues/15","number":15,"state":"open","locked":false,"title":"All test pass, spec completed.","user":{"login":"emmiehayes","id":32617260,"avatar_url":"https://avatars0.githubusercontent.com/u/32617260?v=4","gravatar_id":"","url":"https://api.github.com/users/emmiehayes","html_url":"https://github.com/emmiehayes","followers_url":"https://api.github.com/users/emmiehayes/followers","following_url":"https://api.github.com/users/emmiehayes/following{/other_user}","gists_url":"https://api.github.com/users/emmiehayes/gists{/gist_id}","starred_url":"https://api.github.com/users/emmiehayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmiehayes/subscriptions","organizations_url":"https://api.github.com/users/emmiehayes/orgs","repos_url":"https://api.github.com/users/emmiehayes/repos","events_url":"https://api.github.com/users/emmiehayes/events{/privacy}","received_events_url":"https://api.github.com/users/emmiehayes/received_events","type":"User","site_admin":false},"body":"whoooohooo!","created_at":"2018-05-16T22:07:46Z","updated_at":"2018-05-16T22:08:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cbbe76d8bdad335b31ab84b6d82c5b04eb3f514","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15/commits","review_comments_url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15/comments","review_comment_url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues/15/comments","statuses_url":"https://api.github.com/repos/LucasAlderfer/enigma/statuses/d6b986e33e3f6405b38d17587c57d48f0799dc7c","head":{"label":"LucasAlderfer:Emmie","ref":"Emmie","sha":"d6b986e33e3f6405b38d17587c57d48f0799dc7c","user":{"login":"LucasAlderfer","id":36676968,"avatar_url":"https://avatars1.githubusercontent.com/u/36676968?v=4","gravatar_id":"","url":"https://api.github.com/users/LucasAlderfer","html_url":"https://github.com/LucasAlderfer","followers_url":"https://api.github.com/users/LucasAlderfer/followers","following_url":"https://api.github.com/users/LucasAlderfer/following{/other_user}","gists_url":"https://api.github.com/users/LucasAlderfer/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasAlderfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasAlderfer/subscriptions","organizations_url":"https://api.github.com/users/LucasAlderfer/orgs","repos_url":"https://api.github.com/users/LucasAlderfer/repos","events_url":"https://api.github.com/users/LucasAlderfer/events{/privacy}","received_events_url":"https://api.github.com/users/LucasAlderfer/received_events","type":"User","site_admin":false},"repo":{"id":133157001,"name":"enigma","full_name":"LucasAlderfer/enigma","owner":{"login":"LucasAlderfer","id":36676968,"avatar_url":"https://avatars1.githubusercontent.com/u/36676968?v=4","gravatar_id":"","url":"https://api.github.com/users/LucasAlderfer","html_url":"https://github.com/LucasAlderfer","followers_url":"https://api.github.com/users/LucasAlderfer/followers","following_url":"https://api.github.com/users/LucasAlderfer/following{/other_user}","gists_url":"https://api.github.com/users/LucasAlderfer/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasAlderfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasAlderfer/subscriptions","organizations_url":"https://api.github.com/users/LucasAlderfer/orgs","repos_url":"https://api.github.com/users/LucasAlderfer/repos","events_url":"https://api.github.com/users/LucasAlderfer/events{/privacy}","received_events_url":"https://api.github.com/users/LucasAlderfer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LucasAlderfer/enigma","description":null,"fork":false,"url":"https://api.github.com/repos/LucasAlderfer/enigma","forks_url":"https://api.github.com/repos/LucasAlderfer/enigma/forks","keys_url":"https://api.github.com/repos/LucasAlderfer/enigma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LucasAlderfer/enigma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LucasAlderfer/enigma/teams","hooks_url":"https://api.github.com/repos/LucasAlderfer/enigma/hooks","issue_events_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues/events{/number}","events_url":"https://api.github.com/repos/LucasAlderfer/enigma/events","assignees_url":"https://api.github.com/repos/LucasAlderfer/enigma/assignees{/user}","branches_url":"https://api.github.com/repos/LucasAlderfer/enigma/branches{/branch}","tags_url":"https://api.github.com/repos/LucasAlderfer/enigma/tags","blobs_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/refs{/sha}","trees_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LucasAlderfer/enigma/statuses/{sha}","languages_url":"https://api.github.com/repos/LucasAlderfer/enigma/languages","stargazers_url":"https://api.github.com/repos/LucasAlderfer/enigma/stargazers","contributors_url":"https://api.github.com/repos/LucasAlderfer/enigma/contributors","subscribers_url":"https://api.github.com/repos/LucasAlderfer/enigma/subscribers","subscription_url":"https://api.github.com/repos/LucasAlderfer/enigma/subscription","commits_url":"https://api.github.com/repos/LucasAlderfer/enigma/commits{/sha}","git_commits_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/commits{/sha}","comments_url":"https://api.github.com/repos/LucasAlderfer/enigma/comments{/number}","issue_comment_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues/comments{/number}","contents_url":"https://api.github.com/repos/LucasAlderfer/enigma/contents/{+path}","compare_url":"https://api.github.com/repos/LucasAlderfer/enigma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LucasAlderfer/enigma/merges","archive_url":"https://api.github.com/repos/LucasAlderfer/enigma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LucasAlderfer/enigma/downloads","issues_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues{/number}","pulls_url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls{/number}","milestones_url":"https://api.github.com/repos/LucasAlderfer/enigma/milestones{/number}","notifications_url":"https://api.github.com/repos/LucasAlderfer/enigma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LucasAlderfer/enigma/labels{/name}","releases_url":"https://api.github.com/repos/LucasAlderfer/enigma/releases{/id}","deployments_url":"https://api.github.com/repos/LucasAlderfer/enigma/deployments","created_at":"2018-05-12T15:10:09Z","updated_at":"2018-05-16T00:04:03Z","pushed_at":"2018-05-16T22:07:47Z","git_url":"git://github.com/LucasAlderfer/enigma.git","ssh_url":"git@github.com:LucasAlderfer/enigma.git","clone_url":"https://github.com/LucasAlderfer/enigma.git","svn_url":"https://github.com/LucasAlderfer/enigma","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"LucasAlderfer:master","ref":"master","sha":"a9c186e07e1f2edfae27f2dd261fbd577f4deae8","user":{"login":"LucasAlderfer","id":36676968,"avatar_url":"https://avatars1.githubusercontent.com/u/36676968?v=4","gravatar_id":"","url":"https://api.github.com/users/LucasAlderfer","html_url":"https://github.com/LucasAlderfer","followers_url":"https://api.github.com/users/LucasAlderfer/followers","following_url":"https://api.github.com/users/LucasAlderfer/following{/other_user}","gists_url":"https://api.github.com/users/LucasAlderfer/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasAlderfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasAlderfer/subscriptions","organizations_url":"https://api.github.com/users/LucasAlderfer/orgs","repos_url":"https://api.github.com/users/LucasAlderfer/repos","events_url":"https://api.github.com/users/LucasAlderfer/events{/privacy}","received_events_url":"https://api.github.com/users/LucasAlderfer/received_events","type":"User","site_admin":false},"repo":{"id":133157001,"name":"enigma","full_name":"LucasAlderfer/enigma","owner":{"login":"LucasAlderfer","id":36676968,"avatar_url":"https://avatars1.githubusercontent.com/u/36676968?v=4","gravatar_id":"","url":"https://api.github.com/users/LucasAlderfer","html_url":"https://github.com/LucasAlderfer","followers_url":"https://api.github.com/users/LucasAlderfer/followers","following_url":"https://api.github.com/users/LucasAlderfer/following{/other_user}","gists_url":"https://api.github.com/users/LucasAlderfer/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasAlderfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasAlderfer/subscriptions","organizations_url":"https://api.github.com/users/LucasAlderfer/orgs","repos_url":"https://api.github.com/users/LucasAlderfer/repos","events_url":"https://api.github.com/users/LucasAlderfer/events{/privacy}","received_events_url":"https://api.github.com/users/LucasAlderfer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LucasAlderfer/enigma","description":null,"fork":false,"url":"https://api.github.com/repos/LucasAlderfer/enigma","forks_url":"https://api.github.com/repos/LucasAlderfer/enigma/forks","keys_url":"https://api.github.com/repos/LucasAlderfer/enigma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LucasAlderfer/enigma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LucasAlderfer/enigma/teams","hooks_url":"https://api.github.com/repos/LucasAlderfer/enigma/hooks","issue_events_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues/events{/number}","events_url":"https://api.github.com/repos/LucasAlderfer/enigma/events","assignees_url":"https://api.github.com/repos/LucasAlderfer/enigma/assignees{/user}","branches_url":"https://api.github.com/repos/LucasAlderfer/enigma/branches{/branch}","tags_url":"https://api.github.com/repos/LucasAlderfer/enigma/tags","blobs_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/refs{/sha}","trees_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LucasAlderfer/enigma/statuses/{sha}","languages_url":"https://api.github.com/repos/LucasAlderfer/enigma/languages","stargazers_url":"https://api.github.com/repos/LucasAlderfer/enigma/stargazers","contributors_url":"https://api.github.com/repos/LucasAlderfer/enigma/contributors","subscribers_url":"https://api.github.com/repos/LucasAlderfer/enigma/subscribers","subscription_url":"https://api.github.com/repos/LucasAlderfer/enigma/subscription","commits_url":"https://api.github.com/repos/LucasAlderfer/enigma/commits{/sha}","git_commits_url":"https://api.github.com/repos/LucasAlderfer/enigma/git/commits{/sha}","comments_url":"https://api.github.com/repos/LucasAlderfer/enigma/comments{/number}","issue_comment_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues/comments{/number}","contents_url":"https://api.github.com/repos/LucasAlderfer/enigma/contents/{+path}","compare_url":"https://api.github.com/repos/LucasAlderfer/enigma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LucasAlderfer/enigma/merges","archive_url":"https://api.github.com/repos/LucasAlderfer/enigma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LucasAlderfer/enigma/downloads","issues_url":"https://api.github.com/repos/LucasAlderfer/enigma/issues{/number}","pulls_url":"https://api.github.com/repos/LucasAlderfer/enigma/pulls{/number}","milestones_url":"https://api.github.com/repos/LucasAlderfer/enigma/milestones{/number}","notifications_url":"https://api.github.com/repos/LucasAlderfer/enigma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LucasAlderfer/enigma/labels{/name}","releases_url":"https://api.github.com/repos/LucasAlderfer/enigma/releases{/id}","deployments_url":"https://api.github.com/repos/LucasAlderfer/enigma/deployments","created_at":"2018-05-12T15:10:09Z","updated_at":"2018-05-16T00:04:03Z","pushed_at":"2018-05-16T22:07:47Z","git_url":"git://github.com/LucasAlderfer/enigma.git","ssh_url":"git@github.com:LucasAlderfer/enigma.git","clone_url":"https://github.com/LucasAlderfer/enigma.git","svn_url":"https://github.com/LucasAlderfer/enigma","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15"},"html":{"href":"https://github.com/LucasAlderfer/enigma/pull/15"},"issue":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/issues/15"},"comments":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/LucasAlderfer/enigma/statuses/d6b986e33e3f6405b38d17587c57d48f0799dc7c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}