{"action":"created","comment":{"url":"https://api.github.com/repos/RosaTheDev/enigma/pulls/comments/187957716","pull_request_review_id":119839181,"id":187957716,"diff_hunk":"@@ -0,0 +1,87 @@\n+require './test/test_helper'\n+require './lib/encrypt'\n+\n+class EncryptTest < Minitest::Test\n+  def setup\n+    @encrypt = Encrypt.new('this is so secret ..end..', 32_435, '051218')\n+  end\n+\n+  def test_encrypt_exists\n+    assert_instance_of Encrypt, @encrypt\n+  end\n+\n+  def test_encrypt_takes_a_key\n+    assert_equal 32_435, @encrypt.key\n+  end\n+\n+  def test_encrypt_takes_a_message\n+    assert_equal 'this is so secret ..end..', @encrypt.message\n+  end\n+\n+  def test_date\n+    assert_equal '051218', @encrypt.date\n+  end\n+\n+  def test_encrypt_has_characters\n+    # skip\n+    assert @encrypt.characters.include? 'a'\n+    assert @encrypt.characters.include? '0'\n+    assert @encrypt.characters.include? '.'\n+  end\n+\n+  def test_split_into_four_strings\n+    # skip\n+    key_array = @encrypt.split_into_four_strings\n+\n+    assert_equal ['32', '24', '43', '35'], key_array\n+  end\n+\n+  def test_change_four_strings_to_ints\n+    # skip\n+    key_array = @encrypt.split_into_four_strings\n+    key_ints = @encrypt.strings_to_ints(key_array)\n+\n+    assert_equal [32, 24, 43, 35], key_ints\n+  end\n+\n+  def test_squared_date\n+    # skip\n+    assert_equal 2_623_283_524, @encrypt.square_date\n+  end\n+\n+  def test_last_four_digits_of_date_squared\n+    # skip\n+    sqr_date  = @encrypt.square_date\n+    last_four = @encrypt.last_four_digits_of_date_squared(sqr_date)\n+\n+    assert_equal ['3', '5', '2', '4'], last_four\n+  end\n+\n+  def test_final_key_for_encode\n+    # skip\n+    key_array = @encrypt.split_into_four_strings\n+    key_ints  = @encrypt.strings_to_ints(key_array)\n+\n+    sqr_date  = @encrypt.square_date\n+    last_four = @encrypt.last_four_digits_of_date_squared(sqr_date)\n+    date_ints = @encrypt.strings_to_ints(last_four)\n+\n+    final_code_key = @encrypt.final_key_for_encode(key_ints, date_ints)\n+\n+    assert_equal [35, 29, 45, 39], final_code_key\n+  end\n+\n+  def test_split_message\n+    # skip\n+    expected = [\"t\", \"h\", \"i\", \"s\", \" \", \"i\", \"s\", \" \",\\","path":"test/encrypt_test.rb","position":76,"original_position":76,"commit_id":"bfe64d2684fe1f8a0bfb9e9a88c140c74a988e26","original_commit_id":"bfe64d2684fe1f8a0bfb9e9a88c140c74a988e26","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-14T13:44:58Z","updated_at":"2018-05-14T13:45:00Z","html_url":"https://github.com/RosaTheDev/enigma/pull/9#discussion_r187957716","pull_request_url":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/RosaTheDev/enigma/pulls/comments/187957716"},"html":{"href":"https://github.com/RosaTheDev/enigma/pull/9#discussion_r187957716"},"pull_request":{"href":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9","id":187728757,"html_url":"https://github.com/RosaTheDev/enigma/pull/9","diff_url":"https://github.com/RosaTheDev/enigma/pull/9.diff","patch_url":"https://github.com/RosaTheDev/enigma/pull/9.patch","issue_url":"https://api.github.com/repos/RosaTheDev/enigma/issues/9","number":9,"state":"open","locked":false,"title":"dude, this was so ridiculous, the spec is a crazy and I hate it.","user":{"login":"1powechri2","id":34900620,"avatar_url":"https://avatars1.githubusercontent.com/u/34900620?v=4","gravatar_id":"","url":"https://api.github.com/users/1powechri2","html_url":"https://github.com/1powechri2","followers_url":"https://api.github.com/users/1powechri2/followers","following_url":"https://api.github.com/users/1powechri2/following{/other_user}","gists_url":"https://api.github.com/users/1powechri2/gists{/gist_id}","starred_url":"https://api.github.com/users/1powechri2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1powechri2/subscriptions","organizations_url":"https://api.github.com/users/1powechri2/orgs","repos_url":"https://api.github.com/users/1powechri2/repos","events_url":"https://api.github.com/users/1powechri2/events{/privacy}","received_events_url":"https://api.github.com/users/1powechri2/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-14T06:14:00Z","updated_at":"2018-05-14T13:45:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aeb518e4d45e959a0c4fc06286d29799de65726a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9/commits","review_comments_url":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9/comments","review_comment_url":"https://api.github.com/repos/RosaTheDev/enigma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RosaTheDev/enigma/issues/9/comments","statuses_url":"https://api.github.com/repos/RosaTheDev/enigma/statuses/bfe64d2684fe1f8a0bfb9e9a88c140c74a988e26","head":{"label":"1powechri2:master","ref":"master","sha":"bfe64d2684fe1f8a0bfb9e9a88c140c74a988e26","user":{"login":"1powechri2","id":34900620,"avatar_url":"https://avatars1.githubusercontent.com/u/34900620?v=4","gravatar_id":"","url":"https://api.github.com/users/1powechri2","html_url":"https://github.com/1powechri2","followers_url":"https://api.github.com/users/1powechri2/followers","following_url":"https://api.github.com/users/1powechri2/following{/other_user}","gists_url":"https://api.github.com/users/1powechri2/gists{/gist_id}","starred_url":"https://api.github.com/users/1powechri2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1powechri2/subscriptions","organizations_url":"https://api.github.com/users/1powechri2/orgs","repos_url":"https://api.github.com/users/1powechri2/repos","events_url":"https://api.github.com/users/1powechri2/events{/privacy}","received_events_url":"https://api.github.com/users/1powechri2/received_events","type":"User","site_admin":false},"repo":{"id":133082393,"name":"enigma","full_name":"1powechri2/enigma","owner":{"login":"1powechri2","id":34900620,"avatar_url":"https://avatars1.githubusercontent.com/u/34900620?v=4","gravatar_id":"","url":"https://api.github.com/users/1powechri2","html_url":"https://github.com/1powechri2","followers_url":"https://api.github.com/users/1powechri2/followers","following_url":"https://api.github.com/users/1powechri2/following{/other_user}","gists_url":"https://api.github.com/users/1powechri2/gists{/gist_id}","starred_url":"https://api.github.com/users/1powechri2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1powechri2/subscriptions","organizations_url":"https://api.github.com/users/1powechri2/orgs","repos_url":"https://api.github.com/users/1powechri2/repos","events_url":"https://api.github.com/users/1powechri2/events{/privacy}","received_events_url":"https://api.github.com/users/1powechri2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/1powechri2/enigma","description":null,"fork":true,"url":"https://api.github.com/repos/1powechri2/enigma","forks_url":"https://api.github.com/repos/1powechri2/enigma/forks","keys_url":"https://api.github.com/repos/1powechri2/enigma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1powechri2/enigma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1powechri2/enigma/teams","hooks_url":"https://api.github.com/repos/1powechri2/enigma/hooks","issue_events_url":"https://api.github.com/repos/1powechri2/enigma/issues/events{/number}","events_url":"https://api.github.com/repos/1powechri2/enigma/events","assignees_url":"https://api.github.com/repos/1powechri2/enigma/assignees{/user}","branches_url":"https://api.github.com/repos/1powechri2/enigma/branches{/branch}","tags_url":"https://api.github.com/repos/1powechri2/enigma/tags","blobs_url":"https://api.github.com/repos/1powechri2/enigma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1powechri2/enigma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1powechri2/enigma/git/refs{/sha}","trees_url":"https://api.github.com/repos/1powechri2/enigma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1powechri2/enigma/statuses/{sha}","languages_url":"https://api.github.com/repos/1powechri2/enigma/languages","stargazers_url":"https://api.github.com/repos/1powechri2/enigma/stargazers","contributors_url":"https://api.github.com/repos/1powechri2/enigma/contributors","subscribers_url":"https://api.github.com/repos/1powechri2/enigma/subscribers","subscription_url":"https://api.github.com/repos/1powechri2/enigma/subscription","commits_url":"https://api.github.com/repos/1powechri2/enigma/commits{/sha}","git_commits_url":"https://api.github.com/repos/1powechri2/enigma/git/commits{/sha}","comments_url":"https://api.github.com/repos/1powechri2/enigma/comments{/number}","issue_comment_url":"https://api.github.com/repos/1powechri2/enigma/issues/comments{/number}","contents_url":"https://api.github.com/repos/1powechri2/enigma/contents/{+path}","compare_url":"https://api.github.com/repos/1powechri2/enigma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1powechri2/enigma/merges","archive_url":"https://api.github.com/repos/1powechri2/enigma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1powechri2/enigma/downloads","issues_url":"https://api.github.com/repos/1powechri2/enigma/issues{/number}","pulls_url":"https://api.github.com/repos/1powechri2/enigma/pulls{/number}","milestones_url":"https://api.github.com/repos/1powechri2/enigma/milestones{/number}","notifications_url":"https://api.github.com/repos/1powechri2/enigma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1powechri2/enigma/labels{/name}","releases_url":"https://api.github.com/repos/1powechri2/enigma/releases{/id}","deployments_url":"https://api.github.com/repos/1powechri2/enigma/deployments","created_at":"2018-05-11T19:49:25Z","updated_at":"2018-05-14T13:44:45Z","pushed_at":"2018-05-14T13:44:43Z","git_url":"git://github.com/1powechri2/enigma.git","ssh_url":"git@github.com:1powechri2/enigma.git","clone_url":"https://github.com/1powechri2/enigma.git","svn_url":"https://github.com/1powechri2/enigma","homepage":null,"size":38,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RosaTheDev:master","ref":"master","sha":"9d5834f874d305fccb7d7fa45153f2a5dae1c4f5","user":{"login":"RosaTheDev","id":29051996,"avatar_url":"https://avatars0.githubusercontent.com/u/29051996?v=4","gravatar_id":"","url":"https://api.github.com/users/RosaTheDev","html_url":"https://github.com/RosaTheDev","followers_url":"https://api.github.com/users/RosaTheDev/followers","following_url":"https://api.github.com/users/RosaTheDev/following{/other_user}","gists_url":"https://api.github.com/users/RosaTheDev/gists{/gist_id}","starred_url":"https://api.github.com/users/RosaTheDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RosaTheDev/subscriptions","organizations_url":"https://api.github.com/users/RosaTheDev/orgs","repos_url":"https://api.github.com/users/RosaTheDev/repos","events_url":"https://api.github.com/users/RosaTheDev/events{/privacy}","received_events_url":"https://api.github.com/users/RosaTheDev/received_events","type":"User","site_admin":false},"repo":{"id":133081465,"name":"enigma","full_name":"RosaTheDev/enigma","owner":{"login":"RosaTheDev","id":29051996,"avatar_url":"https://avatars0.githubusercontent.com/u/29051996?v=4","gravatar_id":"","url":"https://api.github.com/users/RosaTheDev","html_url":"https://github.com/RosaTheDev","followers_url":"https://api.github.com/users/RosaTheDev/followers","following_url":"https://api.github.com/users/RosaTheDev/following{/other_user}","gists_url":"https://api.github.com/users/RosaTheDev/gists{/gist_id}","starred_url":"https://api.github.com/users/RosaTheDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RosaTheDev/subscriptions","organizations_url":"https://api.github.com/users/RosaTheDev/orgs","repos_url":"https://api.github.com/users/RosaTheDev/repos","events_url":"https://api.github.com/users/RosaTheDev/events{/privacy}","received_events_url":"https://api.github.com/users/RosaTheDev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RosaTheDev/enigma","description":null,"fork":false,"url":"https://api.github.com/repos/RosaTheDev/enigma","forks_url":"https://api.github.com/repos/RosaTheDev/enigma/forks","keys_url":"https://api.github.com/repos/RosaTheDev/enigma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RosaTheDev/enigma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RosaTheDev/enigma/teams","hooks_url":"https://api.github.com/repos/RosaTheDev/enigma/hooks","issue_events_url":"https://api.github.com/repos/RosaTheDev/enigma/issues/events{/number}","events_url":"https://api.github.com/repos/RosaTheDev/enigma/events","assignees_url":"https://api.github.com/repos/RosaTheDev/enigma/assignees{/user}","branches_url":"https://api.github.com/repos/RosaTheDev/enigma/branches{/branch}","tags_url":"https://api.github.com/repos/RosaTheDev/enigma/tags","blobs_url":"https://api.github.com/repos/RosaTheDev/enigma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RosaTheDev/enigma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RosaTheDev/enigma/git/refs{/sha}","trees_url":"https://api.github.com/repos/RosaTheDev/enigma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RosaTheDev/enigma/statuses/{sha}","languages_url":"https://api.github.com/repos/RosaTheDev/enigma/languages","stargazers_url":"https://api.github.com/repos/RosaTheDev/enigma/stargazers","contributors_url":"https://api.github.com/repos/RosaTheDev/enigma/contributors","subscribers_url":"https://api.github.com/repos/RosaTheDev/enigma/subscribers","subscription_url":"https://api.github.com/repos/RosaTheDev/enigma/subscription","commits_url":"https://api.github.com/repos/RosaTheDev/enigma/commits{/sha}","git_commits_url":"https://api.github.com/repos/RosaTheDev/enigma/git/commits{/sha}","comments_url":"https://api.github.com/repos/RosaTheDev/enigma/comments{/number}","issue_comment_url":"https://api.github.com/repos/RosaTheDev/enigma/issues/comments{/number}","contents_url":"https://api.github.com/repos/RosaTheDev/enigma/contents/{+path}","compare_url":"https://api.github.com/repos/RosaTheDev/enigma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RosaTheDev/enigma/merges","archive_url":"https://api.github.com/repos/RosaTheDev/enigma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RosaTheDev/enigma/downloads","issues_url":"https://api.github.com/repos/RosaTheDev/enigma/issues{/number}","pulls_url":"https://api.github.com/repos/RosaTheDev/enigma/pulls{/number}","milestones_url":"https://api.github.com/repos/RosaTheDev/enigma/milestones{/number}","notifications_url":"https://api.github.com/repos/RosaTheDev/enigma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RosaTheDev/enigma/labels{/name}","releases_url":"https://api.github.com/repos/RosaTheDev/enigma/releases{/id}","deployments_url":"https://api.github.com/repos/RosaTheDev/enigma/deployments","created_at":"2018-05-11T19:39:19Z","updated_at":"2018-05-13T22:32:59Z","pushed_at":"2018-05-14T13:44:44Z","git_url":"git://github.com/RosaTheDev/enigma.git","ssh_url":"git@github.com:RosaTheDev/enigma.git","clone_url":"https://github.com/RosaTheDev/enigma.git","svn_url":"https://github.com/RosaTheDev/enigma","homepage":null,"size":25,"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":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9"},"html":{"href":"https://github.com/RosaTheDev/enigma/pull/9"},"issue":{"href":"https://api.github.com/repos/RosaTheDev/enigma/issues/9"},"comments":{"href":"https://api.github.com/repos/RosaTheDev/enigma/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/RosaTheDev/enigma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RosaTheDev/enigma/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/RosaTheDev/enigma/statuses/bfe64d2684fe1f8a0bfb9e9a88c140c74a988e26"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}