{"action":"created","comment":{"url":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/comments/63542562","id":63542562,"diff_hunk":"@@ -12,7 +12,45 @@ def test_change_in_configuration_keep_default_untouched\n   end\n \n   def test_options\n+    hundle_options\n     assert @config.options\n     assert_includes @config.options, :args\n   end\n+\n+  def test_option_templates\n+    hundle_options('--templates')\n+    assert(@config.options)\n+    assert_includes(@config.options, :templates)\n+  end\n+\n+  def test_option_version\n+    hundle_options('-v')\n+    assert(@config.options)\n+    assert_includes(@config.options, :version)\n+  end\n+\n+  def test_invalid_option\n+    assert_throws_and_match(Gem2Rpm::Configuration::ConfigurationError,","path":"test/test_configuration.rb","position":22,"original_position":22,"commit_id":"991c261468128d04342b96bb452789c51e349980","original_commit_id":"991c261468128d04342b96bb452789c51e349980","user":{"login":"junaruga","id":121989,"avatar_url":"https://avatars.githubusercontent.com/u/121989?v=3","gravatar_id":"","url":"https://api.github.com/users/junaruga","html_url":"https://github.com/junaruga","followers_url":"https://api.github.com/users/junaruga/followers","following_url":"https://api.github.com/users/junaruga/following{/other_user}","gists_url":"https://api.github.com/users/junaruga/gists{/gist_id}","starred_url":"https://api.github.com/users/junaruga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junaruga/subscriptions","organizations_url":"https://api.github.com/users/junaruga/orgs","repos_url":"https://api.github.com/users/junaruga/repos","events_url":"https://api.github.com/users/junaruga/events{/privacy}","received_events_url":"https://api.github.com/users/junaruga/received_events","type":"User","site_admin":false},"body":"I wanted to check both the type of the exception object's class, and the message (e.to_s) of the exception object.\r\nBecause assert_raises looks only check the type of the exception class.\r\n","created_at":"2016-05-17T15:19:47Z","updated_at":"2016-05-17T15:19:47Z","html_url":"https://github.com/fedora-ruby/gem2rpm/pull/80#discussion_r63542562","pull_request_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/comments/63542562"},"html":{"href":"https://github.com/fedora-ruby/gem2rpm/pull/80#discussion_r63542562"},"pull_request":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80","id":70198900,"html_url":"https://github.com/fedora-ruby/gem2rpm/pull/80","diff_url":"https://github.com/fedora-ruby/gem2rpm/pull/80.diff","patch_url":"https://github.com/fedora-ruby/gem2rpm/pull/80.patch","issue_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/issues/80","number":80,"state":"open","locked":false,"title":"Remove exit method from files in lib and add logic in bin/gem2rpm.","user":{"login":"junaruga","id":121989,"avatar_url":"https://avatars.githubusercontent.com/u/121989?v=3","gravatar_id":"","url":"https://api.github.com/users/junaruga","html_url":"https://github.com/junaruga","followers_url":"https://api.github.com/users/junaruga/followers","following_url":"https://api.github.com/users/junaruga/following{/other_user}","gists_url":"https://api.github.com/users/junaruga/gists{/gist_id}","starred_url":"https://api.github.com/users/junaruga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junaruga/subscriptions","organizations_url":"https://api.github.com/users/junaruga/orgs","repos_url":"https://api.github.com/users/junaruga/repos","events_url":"https://api.github.com/users/junaruga/events{/privacy}","received_events_url":"https://api.github.com/users/junaruga/received_events","type":"User","site_admin":false},"body":"I modified the code to fix the issue [1], by the idea based on your idea [2].\r\n\r\nThe reason why I selected to use \"show_templates\", \"show_version\" is that we have already had show_message method to print message to out stream.\r\n\r\nCould you check and merge to this modification?\r\nThanks.\r\n\r\n[1] https://github.com/fedora-ruby/gem2rpm/issues/74\r\n[2] https://github.com/fedora-ruby/gem2rpm/pull/75\r\n","created_at":"2016-05-16T13:49:31Z","updated_at":"2016-05-17T15:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9c3f4f2455072a17c1f5e30514f87a1aaa05112","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80/commits","review_comments_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80/comments","review_comment_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/issues/80/comments","statuses_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/statuses/991c261468128d04342b96bb452789c51e349980","head":{"label":"junaruga:feature/remove-exit-from-lib-and-add-logic-in-bin","ref":"feature/remove-exit-from-lib-and-add-logic-in-bin","sha":"991c261468128d04342b96bb452789c51e349980","user":{"login":"junaruga","id":121989,"avatar_url":"https://avatars.githubusercontent.com/u/121989?v=3","gravatar_id":"","url":"https://api.github.com/users/junaruga","html_url":"https://github.com/junaruga","followers_url":"https://api.github.com/users/junaruga/followers","following_url":"https://api.github.com/users/junaruga/following{/other_user}","gists_url":"https://api.github.com/users/junaruga/gists{/gist_id}","starred_url":"https://api.github.com/users/junaruga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junaruga/subscriptions","organizations_url":"https://api.github.com/users/junaruga/orgs","repos_url":"https://api.github.com/users/junaruga/repos","events_url":"https://api.github.com/users/junaruga/events{/privacy}","received_events_url":"https://api.github.com/users/junaruga/received_events","type":"User","site_admin":false},"repo":{"id":57143180,"name":"gem2rpm","full_name":"junaruga/gem2rpm","owner":{"login":"junaruga","id":121989,"avatar_url":"https://avatars.githubusercontent.com/u/121989?v=3","gravatar_id":"","url":"https://api.github.com/users/junaruga","html_url":"https://github.com/junaruga","followers_url":"https://api.github.com/users/junaruga/followers","following_url":"https://api.github.com/users/junaruga/following{/other_user}","gists_url":"https://api.github.com/users/junaruga/gists{/gist_id}","starred_url":"https://api.github.com/users/junaruga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junaruga/subscriptions","organizations_url":"https://api.github.com/users/junaruga/orgs","repos_url":"https://api.github.com/users/junaruga/repos","events_url":"https://api.github.com/users/junaruga/events{/privacy}","received_events_url":"https://api.github.com/users/junaruga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/junaruga/gem2rpm","description":"Generate an rpm from a rubygem","fork":true,"url":"https://api.github.com/repos/junaruga/gem2rpm","forks_url":"https://api.github.com/repos/junaruga/gem2rpm/forks","keys_url":"https://api.github.com/repos/junaruga/gem2rpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/junaruga/gem2rpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/junaruga/gem2rpm/teams","hooks_url":"https://api.github.com/repos/junaruga/gem2rpm/hooks","issue_events_url":"https://api.github.com/repos/junaruga/gem2rpm/issues/events{/number}","events_url":"https://api.github.com/repos/junaruga/gem2rpm/events","assignees_url":"https://api.github.com/repos/junaruga/gem2rpm/assignees{/user}","branches_url":"https://api.github.com/repos/junaruga/gem2rpm/branches{/branch}","tags_url":"https://api.github.com/repos/junaruga/gem2rpm/tags","blobs_url":"https://api.github.com/repos/junaruga/gem2rpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/junaruga/gem2rpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/junaruga/gem2rpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/junaruga/gem2rpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/junaruga/gem2rpm/statuses/{sha}","languages_url":"https://api.github.com/repos/junaruga/gem2rpm/languages","stargazers_url":"https://api.github.com/repos/junaruga/gem2rpm/stargazers","contributors_url":"https://api.github.com/repos/junaruga/gem2rpm/contributors","subscribers_url":"https://api.github.com/repos/junaruga/gem2rpm/subscribers","subscription_url":"https://api.github.com/repos/junaruga/gem2rpm/subscription","commits_url":"https://api.github.com/repos/junaruga/gem2rpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/junaruga/gem2rpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/junaruga/gem2rpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/junaruga/gem2rpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/junaruga/gem2rpm/contents/{+path}","compare_url":"https://api.github.com/repos/junaruga/gem2rpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/junaruga/gem2rpm/merges","archive_url":"https://api.github.com/repos/junaruga/gem2rpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/junaruga/gem2rpm/downloads","issues_url":"https://api.github.com/repos/junaruga/gem2rpm/issues{/number}","pulls_url":"https://api.github.com/repos/junaruga/gem2rpm/pulls{/number}","milestones_url":"https://api.github.com/repos/junaruga/gem2rpm/milestones{/number}","notifications_url":"https://api.github.com/repos/junaruga/gem2rpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/junaruga/gem2rpm/labels{/name}","releases_url":"https://api.github.com/repos/junaruga/gem2rpm/releases{/id}","deployments_url":"https://api.github.com/repos/junaruga/gem2rpm/deployments","created_at":"2016-04-26T16:13:27Z","updated_at":"2016-04-26T16:13:28Z","pushed_at":"2016-05-16T13:45:58Z","git_url":"git://github.com/junaruga/gem2rpm.git","ssh_url":"git@github.com:junaruga/gem2rpm.git","clone_url":"https://github.com/junaruga/gem2rpm.git","svn_url":"https://github.com/junaruga/gem2rpm","homepage":"","size":270,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fedora-ruby:master","ref":"master","sha":"471295a63ef9aa523f8153435415f8761e1e19a2","user":{"login":"fedora-ruby","id":7008810,"avatar_url":"https://avatars.githubusercontent.com/u/7008810?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-ruby","html_url":"https://github.com/fedora-ruby","followers_url":"https://api.github.com/users/fedora-ruby/followers","following_url":"https://api.github.com/users/fedora-ruby/following{/other_user}","gists_url":"https://api.github.com/users/fedora-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-ruby/subscriptions","organizations_url":"https://api.github.com/users/fedora-ruby/orgs","repos_url":"https://api.github.com/users/fedora-ruby/repos","events_url":"https://api.github.com/users/fedora-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-ruby/received_events","type":"Organization","site_admin":false},"repo":{"id":785539,"name":"gem2rpm","full_name":"fedora-ruby/gem2rpm","owner":{"login":"fedora-ruby","id":7008810,"avatar_url":"https://avatars.githubusercontent.com/u/7008810?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-ruby","html_url":"https://github.com/fedora-ruby","followers_url":"https://api.github.com/users/fedora-ruby/followers","following_url":"https://api.github.com/users/fedora-ruby/following{/other_user}","gists_url":"https://api.github.com/users/fedora-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-ruby/subscriptions","organizations_url":"https://api.github.com/users/fedora-ruby/orgs","repos_url":"https://api.github.com/users/fedora-ruby/repos","events_url":"https://api.github.com/users/fedora-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-ruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedora-ruby/gem2rpm","description":"Generate an rpm from a rubygem","fork":false,"url":"https://api.github.com/repos/fedora-ruby/gem2rpm","forks_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/forks","keys_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/teams","hooks_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/hooks","issue_events_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/issues/events{/number}","events_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/events","assignees_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/assignees{/user}","branches_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/branches{/branch}","tags_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/tags","blobs_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/statuses/{sha}","languages_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/languages","stargazers_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/stargazers","contributors_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/contributors","subscribers_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/subscribers","subscription_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/subscription","commits_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/contents/{+path}","compare_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/merges","archive_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/downloads","issues_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/issues{/number}","pulls_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls{/number}","milestones_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/milestones{/number}","notifications_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/labels{/name}","releases_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/releases{/id}","deployments_url":"https://api.github.com/repos/fedora-ruby/gem2rpm/deployments","created_at":"2010-07-19T23:22:03Z","updated_at":"2016-04-28T08:23:19Z","pushed_at":"2016-05-17T07:04:11Z","git_url":"git://github.com/fedora-ruby/gem2rpm.git","ssh_url":"git@github.com:fedora-ruby/gem2rpm.git","clone_url":"https://github.com/fedora-ruby/gem2rpm.git","svn_url":"https://github.com/fedora-ruby/gem2rpm","homepage":"","size":293,"stargazers_count":55,"watchers_count":55,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":19,"forks":37,"open_issues":19,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80"},"html":{"href":"https://github.com/fedora-ruby/gem2rpm/pull/80"},"issue":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/issues/80"},"comments":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/fedora-ruby/gem2rpm/statuses/991c261468128d04342b96bb452789c51e349980"}}}}