{"action":"created","comment":{"url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/comments/57466414","id":57466414,"diff_hunk":"@@ -0,0 +1,106 @@\n+import SnowManLogic\n+import Swiftest\n+\n+class ViewSpec: Swiftest.Spec {\n+  \tlet spec = describe(\"View logic\") {\n+\t\tvar io: MockIO!\n+        \tvar view: View!\n+\t        before() {\n+\t\t\tio = MockIO()\n+       \t\t \tview = View(io: io)\n+        \t}\n+        \n+       \t\tdescribe(\"#receiveGuess\") {\n+        \t\tit(\"should return the user input if it is a string of letters\") {\n+            \t\tio.stubbedUserInput = [\"hello\"]\n+                    expect(view.receiveGuess(io.myReadLine)).to.equal(\"hello\")\n+           \t\t}\n+\n+           \t\tit(\"should return the user input if it is a single letter\") {\n+                \t\tio.stubbedUserInput = [\"a\"]\n+                \t\texpect(view.receiveGuess(io.myReadLine)).to.equal(\"a\")\n+            \t\t}\n+\n+            \t\tit(\"should return an error message if the user input is a number\") {   \n+                \t\tio.stubbedUserInput = [\"1\", \"fail\"]\n+                \t\texpect(view.receiveGuess(io.myReadLine)).to.equal(\"fail\")\n+            \t\t}\n+\n+                \tit(\"should return an error message if the user input is a non-letter character\") {\n+                        \tio.stubbedUserInput = [\"?\", \"fail\"]\n+                        \texpect(view.receiveGuess(io.myReadLine)).to.equal(\"fail\")\n+                    \t}\n+\n+                    \tit(\"should return an error message if the user input is a combination of valid and invalid inputs\") {\n+                        \tio.stubbedUserInput = [\"?a\", \"fail\"]\n+                        \texpect(view.receiveGuess(io.myReadLine)).to.equal(\"fail\")\n+                    \t}\n+\n+                    \tit(\"should return an error message if the user hits return\") {\n+                        \tio.stubbedUserInput = [\"\", \"fail\"]\n+                        \texpect(view.receiveGuess(io.myReadLine)).to.equal(\"fail\")\n+                    \t}\n+        \t}\n+\n+        \tdescribe(\"#assignBlanks\") {\n+            \t\tvar gameWord: String!\n+            \t\tvar correctGuesses: [String]!\n+            \n+            \t\tbefore() {\n+                \t\tgameWord = \"hello\"\n+                \t\tcorrectGuesses = []\n+            \t\t}\n+            \n+            \t\tit(\"should return only blanks for unguessed word\") {\n+                \t\texpect(view.assignBlanks(gameWord, correctGuesses: correctGuesses)).to.equal(\"__  __  __  __  __ \")\n+            \t\t}\n+\n+            \t\tit(\"should return no blanks if the word has been guessed\") {\n+                \t\tcorrectGuesses = [\"h\", \"e\", \"l\", \"o\"]\n+                \t\texpect(view.assignBlanks(gameWord, correctGuesses: correctGuesses)).to.equal(\"h e l l o\")\n+            \t\t}\n+\n+            \t\tit(\"should return blanks and letters for partially guessed word\") {\n+                \t\tcorrectGuesses = [\"h\", \"e\"]\n+                \t\texpect(view.assignBlanks(gameWord, correctGuesses: correctGuesses)).to.equal(\"h e __  __  __ \")\n+            \t\t}\n+\n+        \t}\n+\n+\t        describe(\"#displayRemainingGuesses\") {\n+        \t\tit(\"should return the number of guesses remaining\") {\n+                    \t\tvar remainingGuesses = 4","path":"Sources/SnowManLogicSpecs/ViewSpec.swift","position":72,"original_position":72,"commit_id":"1525ba5f6b79a92091c024d79b2ddea879ef5bc8","original_commit_id":"1525ba5f6b79a92091c024d79b2ddea879ef5bc8","user":{"login":"mnewsome","id":624585,"avatar_url":"https://avatars.githubusercontent.com/u/624585?v=3","gravatar_id":"","url":"https://api.github.com/users/mnewsome","html_url":"https://github.com/mnewsome","followers_url":"https://api.github.com/users/mnewsome/followers","following_url":"https://api.github.com/users/mnewsome/following{/other_user}","gists_url":"https://api.github.com/users/mnewsome/gists{/gist_id}","starred_url":"https://api.github.com/users/mnewsome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnewsome/subscriptions","organizations_url":"https://api.github.com/users/mnewsome/orgs","repos_url":"https://api.github.com/users/mnewsome/repos","events_url":"https://api.github.com/users/mnewsome/events{/privacy}","received_events_url":"https://api.github.com/users/mnewsome/received_events","type":"User","site_admin":false},"body":"This could be my ignorance of how swift works...but, what object is this variable being set on?","created_at":"2016-03-25T17:25:03Z","updated_at":"2016-03-25T17:25:03Z","html_url":"https://github.com/NicoleCarpenter/SnowMan/pull/8#discussion_r57466414","pull_request_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/comments/57466414"},"html":{"href":"https://github.com/NicoleCarpenter/SnowMan/pull/8#discussion_r57466414"},"pull_request":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8","id":62826830,"html_url":"https://github.com/NicoleCarpenter/SnowMan/pull/8","diff_url":"https://github.com/NicoleCarpenter/SnowMan/pull/8.diff","patch_url":"https://github.com/NicoleCarpenter/SnowMan/pull/8.patch","issue_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/8","number":8,"state":"open","locked":false,"title":"Basic functionality","user":{"login":"NicoleCarpenter","id":8163059,"avatar_url":"https://avatars.githubusercontent.com/u/8163059?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleCarpenter","html_url":"https://github.com/NicoleCarpenter","followers_url":"https://api.github.com/users/NicoleCarpenter/followers","following_url":"https://api.github.com/users/NicoleCarpenter/following{/other_user}","gists_url":"https://api.github.com/users/NicoleCarpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleCarpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleCarpenter/subscriptions","organizations_url":"https://api.github.com/users/NicoleCarpenter/orgs","repos_url":"https://api.github.com/users/NicoleCarpenter/repos","events_url":"https://api.github.com/users/NicoleCarpenter/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleCarpenter/received_events","type":"User","site_admin":false},"body":"WIP","created_at":"2016-03-14T22:19:29Z","updated_at":"2016-03-25T17:25:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15e78cff2347ca0e49a6617fda7d980610bb2eb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8/commits","review_comments_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8/comments","review_comment_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/8/comments","statuses_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/statuses/1525ba5f6b79a92091c024d79b2ddea879ef5bc8","head":{"label":"NicoleCarpenter:basic-functionality","ref":"basic-functionality","sha":"1525ba5f6b79a92091c024d79b2ddea879ef5bc8","user":{"login":"NicoleCarpenter","id":8163059,"avatar_url":"https://avatars.githubusercontent.com/u/8163059?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleCarpenter","html_url":"https://github.com/NicoleCarpenter","followers_url":"https://api.github.com/users/NicoleCarpenter/followers","following_url":"https://api.github.com/users/NicoleCarpenter/following{/other_user}","gists_url":"https://api.github.com/users/NicoleCarpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleCarpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleCarpenter/subscriptions","organizations_url":"https://api.github.com/users/NicoleCarpenter/orgs","repos_url":"https://api.github.com/users/NicoleCarpenter/repos","events_url":"https://api.github.com/users/NicoleCarpenter/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleCarpenter/received_events","type":"User","site_admin":false},"repo":{"id":53357424,"name":"SnowMan","full_name":"NicoleCarpenter/SnowMan","owner":{"login":"NicoleCarpenter","id":8163059,"avatar_url":"https://avatars.githubusercontent.com/u/8163059?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleCarpenter","html_url":"https://github.com/NicoleCarpenter","followers_url":"https://api.github.com/users/NicoleCarpenter/followers","following_url":"https://api.github.com/users/NicoleCarpenter/following{/other_user}","gists_url":"https://api.github.com/users/NicoleCarpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleCarpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleCarpenter/subscriptions","organizations_url":"https://api.github.com/users/NicoleCarpenter/orgs","repos_url":"https://api.github.com/users/NicoleCarpenter/repos","events_url":"https://api.github.com/users/NicoleCarpenter/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleCarpenter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleCarpenter/SnowMan","description":"Console application written in Swift using Swift Package Manager and Swiftest","fork":false,"url":"https://api.github.com/repos/NicoleCarpenter/SnowMan","forks_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/forks","keys_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/teams","hooks_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/hooks","issue_events_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/events","assignees_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/tags","blobs_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/languages","stargazers_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/stargazers","contributors_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/contributors","subscribers_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/subscribers","subscription_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/subscription","commits_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/merges","archive_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/downloads","issues_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/labels{/name}","releases_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/deployments","created_at":"2016-03-07T20:40:28Z","updated_at":"2016-03-18T13:27:45Z","pushed_at":"2016-03-25T14:59:05Z","git_url":"git://github.com/NicoleCarpenter/SnowMan.git","ssh_url":"git@github.com:NicoleCarpenter/SnowMan.git","clone_url":"https://github.com/NicoleCarpenter/SnowMan.git","svn_url":"https://github.com/NicoleCarpenter/SnowMan","homepage":"","size":78,"stargazers_count":1,"watchers_count":1,"language":"Swift","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":1,"default_branch":"master"}},"base":{"label":"NicoleCarpenter:master","ref":"master","sha":"5976c857bd3bb24e22c92c426d70a4aadaa90c27","user":{"login":"NicoleCarpenter","id":8163059,"avatar_url":"https://avatars.githubusercontent.com/u/8163059?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleCarpenter","html_url":"https://github.com/NicoleCarpenter","followers_url":"https://api.github.com/users/NicoleCarpenter/followers","following_url":"https://api.github.com/users/NicoleCarpenter/following{/other_user}","gists_url":"https://api.github.com/users/NicoleCarpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleCarpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleCarpenter/subscriptions","organizations_url":"https://api.github.com/users/NicoleCarpenter/orgs","repos_url":"https://api.github.com/users/NicoleCarpenter/repos","events_url":"https://api.github.com/users/NicoleCarpenter/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleCarpenter/received_events","type":"User","site_admin":false},"repo":{"id":53357424,"name":"SnowMan","full_name":"NicoleCarpenter/SnowMan","owner":{"login":"NicoleCarpenter","id":8163059,"avatar_url":"https://avatars.githubusercontent.com/u/8163059?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleCarpenter","html_url":"https://github.com/NicoleCarpenter","followers_url":"https://api.github.com/users/NicoleCarpenter/followers","following_url":"https://api.github.com/users/NicoleCarpenter/following{/other_user}","gists_url":"https://api.github.com/users/NicoleCarpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleCarpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleCarpenter/subscriptions","organizations_url":"https://api.github.com/users/NicoleCarpenter/orgs","repos_url":"https://api.github.com/users/NicoleCarpenter/repos","events_url":"https://api.github.com/users/NicoleCarpenter/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleCarpenter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoleCarpenter/SnowMan","description":"Console application written in Swift using Swift Package Manager and Swiftest","fork":false,"url":"https://api.github.com/repos/NicoleCarpenter/SnowMan","forks_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/forks","keys_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/teams","hooks_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/hooks","issue_events_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/events{/number}","events_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/events","assignees_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/assignees{/user}","branches_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/branches{/branch}","tags_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/tags","blobs_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/languages","stargazers_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/stargazers","contributors_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/contributors","subscribers_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/subscribers","subscription_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/subscription","commits_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/contents/{+path}","compare_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/merges","archive_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/downloads","issues_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues{/number}","pulls_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/labels{/name}","releases_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/releases{/id}","deployments_url":"https://api.github.com/repos/NicoleCarpenter/SnowMan/deployments","created_at":"2016-03-07T20:40:28Z","updated_at":"2016-03-18T13:27:45Z","pushed_at":"2016-03-25T14:59:05Z","git_url":"git://github.com/NicoleCarpenter/SnowMan.git","ssh_url":"git@github.com:NicoleCarpenter/SnowMan.git","clone_url":"https://github.com/NicoleCarpenter/SnowMan.git","svn_url":"https://github.com/NicoleCarpenter/SnowMan","homepage":"","size":78,"stargazers_count":1,"watchers_count":1,"language":"Swift","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8"},"html":{"href":"https://github.com/NicoleCarpenter/SnowMan/pull/8"},"issue":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/8"},"comments":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/NicoleCarpenter/SnowMan/statuses/1525ba5f6b79a92091c024d79b2ddea879ef5bc8"}}}}