{"action":"created","comment":{"url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments/53952158","id":53952158,"diff_hunk":"@@ -1,38 +1,92 @@\n-require_relative '../lib/NotesApplication'\n-require 'spec_helper'\n-\n-# notes = NotesApplication.new('Tomiiwo')\n-# subject(:notes) {Note::NotesApplication}\n-# subject(:note_obj) {notes.new('Tomiiwo') }\n-\n-RSpec.describe Note::NotesApplication do\n-  subject(:notes) { Note::NotesApplication }\n-  subject(:note_obj) {notes.new('Tomiiwo') }\n-\n-   describe '#initialize' do\n-    it 'returns an Instance of the class NotesApplication' do\n-      expect(NotesApplication.new('Tomiiwo')).to be_an_instance_of NotesApplication\n-    end\n-    it 'accepts only one argument' do\n-      expect {NotesApplication.new}.to raise_error ArgumentError\n-      expect {NotesApplication.new('Tomiiwo','Abosede')}.to raise_error ArgumentError\n-      expect {NotesApplication.new('Tomiiwo')}.not_to raise_error\n+require \"./lib/NotesApplication\"\n+include Tomiiwo\n+RSpec.describe \"NotesApplication\" do\n+  context \"When several instances are created\" do\n+    it \"should pass\" do\n+      ade = NotesApplication.new(\"Ade\")\n+      expect(ade.author).to eq \"Ade\"\n+    end\n+    it \"should pass\" do\n+      ade = NotesApplication.new(\"Ola\")\n+      expect(ade.author).to eq \"Ola\"\n+    end\n+    it \"should pass\" do\n+      new_author = NotesApplication.new(\"New Author\") \n+      expect(new_author.author).to eq \"New Author\"\n+    end\n+    it \"should not pass due to less than 1 input\" do\n+      expect { NotesApplication.new }.to raise_error ArgumentError\n+    end\n+    it \"should not pass due to more than 1 input\" do\n+      expect { NotesApplication.new \"author_one\",\"author_two\" }.to raise_error ArgumentError\n+    end\n+    it \"should not pass due to more than 1 input\" do\n+      expect { NotesApplication.new \"author_one\",\"author_two\",\"author_three\" }.to raise_error ArgumentError\n     end\n   end\n-  describe '#create' do\n-    it 'accepts only one argument' do\n-      expect {NotesApplication.new}.to raise_error ArgumentError\n-      expect {NotesApplication.new('Tomiiwo','Abosede')}.to raise_error ArgumentError\n-      expect {NotesApplication.new('Tomiiwo')}.not_to raise_error\n-    end\n-    it 'adds content of new note to array Notes' do\n-      note_obj.create(\"This is a test message\")\n-      expect(note_obj.instance_variable_get(notes)).to eql ['This is a test message']\n-      expect(note_obj.instance_variable_get(notes)).to eql 1\n-      expect {note_obj.create('This is a test message') }.to output(\"Note has been created.\").to_stdout\n+  context \"when running #create method\" do\n+    tomiiwo = NotesApplication.new \"Tomiiwo\"\n+    tomiiwo.create \"This is a test message\"\n+    tomiiwo.create \"This is a another test message\"\n+    tomiiwo.create \"This is the third test message\"\n+    it \"should not run\" do\n+      expect { tomiiwo.create }.to raise_error ArgumentError\n+    end\n+    it \"should run\" do\n+      expect { tomiiwo.create \"This is an in test\" }.not_to raise_error ArgumentError\n+    end\n+    it \"should not run\" do\n+      expect { tomiiwo.create \"This is a test\", \"this is another test\" }.to raise_error ArgumentError\n+    end\n+    it \"should not run\" do\n+      expect { tomiiwo.create \"This is a test\", \"this is another test\", \"This is yet another test\" }.to raise_error ArgumentError\n+    end\n+  end\n+  context \"when running #get method\" do\n+    tomiiwo = NotesApplication.new \"Tomiiwo\"\n+    tomiiwo.create \"This is a test message\"\n+    tomiiwo.create \"This is a another test message\"\n+    tomiiwo.create \"This is the third test message\"\n+    it \"should return nothing\" do\n+      expect { tomiiwo.get }.to raise_error ArgumentError\n+    end\n+    it \"should not run\" do\n+      expect { tomiiwo.get 1, 2 }.to raise_error ArgumentError\n     end\n+    it \"should not run\" do\n+      expect { tomiiwo.get 1, 2, 3 }.to raise_error ArgumentError\n+    end\n+    it \"should not run\" do\n+      expect { tomiiwo.get \"I'm not a number\" }.to raise_error RuntimeError\n+    end\n+    it \"it should return the most recent note on the list\" do\n+      expect( tomiiwo.get (-1) ) == \"This is the third test message\"\n+    end\n+  end\n+  context \"When running #search method\" do\n+    tomiiwo = NotesApplication.new \"Tomiiwo\"\n+    tomiiwo.create \"This is a test message\"\n+    tomiiwo.create \"This is a another test message\"\n+    tomiiwo.create \"This is the third test message\"\n+    it \"should not run\" do\n+      expect { tomiiwo.search }.to raise_error ArgumentError\n+    end\n+    it \"should not run\" do\n+      expect { tomiiwo.search \"i am looking for A\", \"I am looking for B\" }.to raise_error ArgumentError\n+    end\n+    it \"should not run\" do\n+      expect { tomiiwo.search \"i am looking for A\", \"I am looking for B\",\"I am looking for C\" }.to raise_error ArgumentError","path":"spec/testcases_spec.rb","position":108,"original_position":108,"commit_id":"977432368bf8d30e86acbbe31b25d15dd6f90147","original_commit_id":"977432368bf8d30e86acbbe31b25d15dd6f90147","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Line is too long. [124/80]<br>Space missing after comma.","created_at":"2016-02-24T15:14:28Z","updated_at":"2016-02-24T15:14:28Z","html_url":"https://github.com/ftomiiwo/NotesApplication/pull/1#discussion_r53952158","pull_request_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments/53952158"},"html":{"href":"https://github.com/ftomiiwo/NotesApplication/pull/1#discussion_r53952158"},"pull_request":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1","id":60468126,"html_url":"https://github.com/ftomiiwo/NotesApplication/pull/1","diff_url":"https://github.com/ftomiiwo/NotesApplication/pull/1.diff","patch_url":"https://github.com/ftomiiwo/NotesApplication/pull/1.patch","issue_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1","number":1,"state":"open","locked":false,"title":"Refactor Branch","user":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"body":"Refactor Branch","created_at":"2016-02-24T07:38:17Z","updated_at":"2016-02-24T15:14:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70762ab0f109276b6a72c70c79646bcd3f2ef331","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1/comments","statuses_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/977432368bf8d30e86acbbe31b25d15dd6f90147","head":{"label":"ftomiiwo:master","ref":"master","sha":"977432368bf8d30e86acbbe31b25d15dd6f90147","user":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"repo":{"id":52263862,"name":"NotesApplication","full_name":"ftomiiwo/NotesApplication","owner":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftomiiwo/NotesApplication","description":"This is a Note application and you can perfom CRUD operations on it","fork":false,"url":"https://api.github.com/repos/ftomiiwo/NotesApplication","forks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/forks","keys_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/teams","hooks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/hooks","issue_events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/events{/number}","events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/events","assignees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/assignees{/user}","branches_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/branches{/branch}","tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/tags","blobs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/{sha}","languages_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/languages","stargazers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/stargazers","contributors_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contributors","subscribers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscribers","subscription_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscription","commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contents/{+path}","compare_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/merges","archive_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/downloads","issues_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues{/number}","pulls_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls{/number}","milestones_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/milestones{/number}","notifications_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/labels{/name}","releases_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/releases{/id}","deployments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/deployments","created_at":"2016-02-22T09:55:39Z","updated_at":"2016-02-22T10:07:04Z","pushed_at":"2016-02-24T15:14:26Z","git_url":"git://github.com/ftomiiwo/NotesApplication.git","ssh_url":"git@github.com:ftomiiwo/NotesApplication.git","clone_url":"https://github.com/ftomiiwo/NotesApplication.git","svn_url":"https://github.com/ftomiiwo/NotesApplication","homepage":null,"size":19,"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":"ftomiiwo:ch_refactor","ref":"ch_refactor","sha":"f9c421a6e6f09289ca0adcd32f5726ef35be392b","user":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"repo":{"id":52263862,"name":"NotesApplication","full_name":"ftomiiwo/NotesApplication","owner":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftomiiwo/NotesApplication","description":"This is a Note application and you can perfom CRUD operations on it","fork":false,"url":"https://api.github.com/repos/ftomiiwo/NotesApplication","forks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/forks","keys_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/teams","hooks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/hooks","issue_events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/events{/number}","events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/events","assignees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/assignees{/user}","branches_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/branches{/branch}","tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/tags","blobs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/{sha}","languages_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/languages","stargazers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/stargazers","contributors_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contributors","subscribers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscribers","subscription_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscription","commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contents/{+path}","compare_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/merges","archive_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/downloads","issues_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues{/number}","pulls_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls{/number}","milestones_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/milestones{/number}","notifications_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/labels{/name}","releases_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/releases{/id}","deployments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/deployments","created_at":"2016-02-22T09:55:39Z","updated_at":"2016-02-22T10:07:04Z","pushed_at":"2016-02-24T15:14:26Z","git_url":"git://github.com/ftomiiwo/NotesApplication.git","ssh_url":"git@github.com:ftomiiwo/NotesApplication.git","clone_url":"https://github.com/ftomiiwo/NotesApplication.git","svn_url":"https://github.com/ftomiiwo/NotesApplication","homepage":null,"size":19,"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/ftomiiwo/NotesApplication/pulls/1"},"html":{"href":"https://github.com/ftomiiwo/NotesApplication/pull/1"},"issue":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1"},"comments":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/977432368bf8d30e86acbbe31b25d15dd6f90147"}}}}