{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/25","id":45381890,"html_url":"https://github.com/tomykaira/rspec-parameterized/pull/25","diff_url":"https://github.com/tomykaira/rspec-parameterized/pull/25.diff","patch_url":"https://github.com/tomykaira/rspec-parameterized/pull/25.patch","issue_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/issues/25","number":25,"state":"open","locked":false,"title":"Implement Hash parameter","user":{"login":"baban","id":854188,"avatar_url":"https://avatars.githubusercontent.com/u/854188?v=3","gravatar_id":"","url":"https://api.github.com/users/baban","html_url":"https://github.com/baban","followers_url":"https://api.github.com/users/baban/followers","following_url":"https://api.github.com/users/baban/following{/other_user}","gists_url":"https://api.github.com/users/baban/gists{/gist_id}","starred_url":"https://api.github.com/users/baban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baban/subscriptions","organizations_url":"https://api.github.com/users/baban/orgs","repos_url":"https://api.github.com/users/baban/repos","events_url":"https://api.github.com/users/baban/events{/privacy}","received_events_url":"https://api.github.com/users/baban/received_events","type":"User","site_admin":false},"body":"I use rspec parameterized,recently.\r\nAnd, that feel ugly when like a below table case. \r\n\r\n<table>\r\n  <tr>\r\n    <th>device</th>\r\n    <th>status</th>\r\n    <th>result</th>\r\n  </tr>\r\n  <tr>\r\n    <th rowspan=\"2\">smart_phone</th>\r\n    <th>member</th>\r\n    <td>return HTML</td>\r\n  </tr>\r\n  <tr>\r\n    <th>not member</th>\r\n    <td>redirect</td>\r\n  </tr>\r\n  <tr>\r\n    <th rowspan=\"2\">pc</th>\r\n    <th>member</th>\r\n    <td>return HTML</td>\r\n  </tr>\r\n  <tr>\r\n    <th>not member</th>\r\n    <td>recirect</td>\r\n  </tr>\r\n</table>\r\n\r\nso, I fix code to use hash.\r\n\r\n```ruby\r\nwhere(:user_agent, :session_id, :lambda) do\r\n{\r\n   smart_phone_ua => {\r\n    member_session_id => [->{ should be_success }],\r\n    none_session_id => [->{ should be_redirect }],\r\n  },\r\n   pc_phone_ua => {\r\n    member_session_id => [->{ should be_success }],\r\n    none_session_id => [->{ should be_redirect }],\r\n  }\r\n}\r\nend\r\n```","created_at":"2015-09-18T08:41:02Z","updated_at":"2015-09-18T08:41:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/25/commits","review_comments_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/25/comments","review_comment_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/issues/25/comments","statuses_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/statuses/1941cd14397fb1c740577bb8707efcb76ba6b705","head":{"label":"baban:hash_parameter","ref":"hash_parameter","sha":"1941cd14397fb1c740577bb8707efcb76ba6b705","user":{"login":"baban","id":854188,"avatar_url":"https://avatars.githubusercontent.com/u/854188?v=3","gravatar_id":"","url":"https://api.github.com/users/baban","html_url":"https://github.com/baban","followers_url":"https://api.github.com/users/baban/followers","following_url":"https://api.github.com/users/baban/following{/other_user}","gists_url":"https://api.github.com/users/baban/gists{/gist_id}","starred_url":"https://api.github.com/users/baban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baban/subscriptions","organizations_url":"https://api.github.com/users/baban/orgs","repos_url":"https://api.github.com/users/baban/repos","events_url":"https://api.github.com/users/baban/events{/privacy}","received_events_url":"https://api.github.com/users/baban/received_events","type":"User","site_admin":false},"repo":{"id":42580925,"name":"rspec-parameterized","full_name":"baban/rspec-parameterized","owner":{"login":"baban","id":854188,"avatar_url":"https://avatars.githubusercontent.com/u/854188?v=3","gravatar_id":"","url":"https://api.github.com/users/baban","html_url":"https://github.com/baban","followers_url":"https://api.github.com/users/baban/followers","following_url":"https://api.github.com/users/baban/following{/other_user}","gists_url":"https://api.github.com/users/baban/gists{/gist_id}","starred_url":"https://api.github.com/users/baban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baban/subscriptions","organizations_url":"https://api.github.com/users/baban/orgs","repos_url":"https://api.github.com/users/baban/repos","events_url":"https://api.github.com/users/baban/events{/privacy}","received_events_url":"https://api.github.com/users/baban/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baban/rspec-parameterized","description":"RSpec::Parameterized supports simple parameterized test syntax in rspec.","fork":true,"url":"https://api.github.com/repos/baban/rspec-parameterized","forks_url":"https://api.github.com/repos/baban/rspec-parameterized/forks","keys_url":"https://api.github.com/repos/baban/rspec-parameterized/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baban/rspec-parameterized/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baban/rspec-parameterized/teams","hooks_url":"https://api.github.com/repos/baban/rspec-parameterized/hooks","issue_events_url":"https://api.github.com/repos/baban/rspec-parameterized/issues/events{/number}","events_url":"https://api.github.com/repos/baban/rspec-parameterized/events","assignees_url":"https://api.github.com/repos/baban/rspec-parameterized/assignees{/user}","branches_url":"https://api.github.com/repos/baban/rspec-parameterized/branches{/branch}","tags_url":"https://api.github.com/repos/baban/rspec-parameterized/tags","blobs_url":"https://api.github.com/repos/baban/rspec-parameterized/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baban/rspec-parameterized/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baban/rspec-parameterized/git/refs{/sha}","trees_url":"https://api.github.com/repos/baban/rspec-parameterized/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baban/rspec-parameterized/statuses/{sha}","languages_url":"https://api.github.com/repos/baban/rspec-parameterized/languages","stargazers_url":"https://api.github.com/repos/baban/rspec-parameterized/stargazers","contributors_url":"https://api.github.com/repos/baban/rspec-parameterized/contributors","subscribers_url":"https://api.github.com/repos/baban/rspec-parameterized/subscribers","subscription_url":"https://api.github.com/repos/baban/rspec-parameterized/subscription","commits_url":"https://api.github.com/repos/baban/rspec-parameterized/commits{/sha}","git_commits_url":"https://api.github.com/repos/baban/rspec-parameterized/git/commits{/sha}","comments_url":"https://api.github.com/repos/baban/rspec-parameterized/comments{/number}","issue_comment_url":"https://api.github.com/repos/baban/rspec-parameterized/issues/comments{/number}","contents_url":"https://api.github.com/repos/baban/rspec-parameterized/contents/{+path}","compare_url":"https://api.github.com/repos/baban/rspec-parameterized/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baban/rspec-parameterized/merges","archive_url":"https://api.github.com/repos/baban/rspec-parameterized/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baban/rspec-parameterized/downloads","issues_url":"https://api.github.com/repos/baban/rspec-parameterized/issues{/number}","pulls_url":"https://api.github.com/repos/baban/rspec-parameterized/pulls{/number}","milestones_url":"https://api.github.com/repos/baban/rspec-parameterized/milestones{/number}","notifications_url":"https://api.github.com/repos/baban/rspec-parameterized/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baban/rspec-parameterized/labels{/name}","releases_url":"https://api.github.com/repos/baban/rspec-parameterized/releases{/id}","created_at":"2015-09-16T10:35:08Z","updated_at":"2015-09-16T10:35:08Z","pushed_at":"2015-09-18T08:25:15Z","git_url":"git://github.com/baban/rspec-parameterized.git","ssh_url":"git@github.com:baban/rspec-parameterized.git","clone_url":"https://github.com/baban/rspec-parameterized.git","svn_url":"https://github.com/baban/rspec-parameterized","homepage":"","size":363,"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":"tomykaira:master","ref":"master","sha":"6500b3d7da99f35fc3efb14942ce31923e168ae2","user":{"login":"tomykaira","id":789929,"avatar_url":"https://avatars.githubusercontent.com/u/789929?v=3","gravatar_id":"","url":"https://api.github.com/users/tomykaira","html_url":"https://github.com/tomykaira","followers_url":"https://api.github.com/users/tomykaira/followers","following_url":"https://api.github.com/users/tomykaira/following{/other_user}","gists_url":"https://api.github.com/users/tomykaira/gists{/gist_id}","starred_url":"https://api.github.com/users/tomykaira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomykaira/subscriptions","organizations_url":"https://api.github.com/users/tomykaira/orgs","repos_url":"https://api.github.com/users/tomykaira/repos","events_url":"https://api.github.com/users/tomykaira/events{/privacy}","received_events_url":"https://api.github.com/users/tomykaira/received_events","type":"User","site_admin":false},"repo":{"id":4382292,"name":"rspec-parameterized","full_name":"tomykaira/rspec-parameterized","owner":{"login":"tomykaira","id":789929,"avatar_url":"https://avatars.githubusercontent.com/u/789929?v=3","gravatar_id":"","url":"https://api.github.com/users/tomykaira","html_url":"https://github.com/tomykaira","followers_url":"https://api.github.com/users/tomykaira/followers","following_url":"https://api.github.com/users/tomykaira/following{/other_user}","gists_url":"https://api.github.com/users/tomykaira/gists{/gist_id}","starred_url":"https://api.github.com/users/tomykaira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomykaira/subscriptions","organizations_url":"https://api.github.com/users/tomykaira/orgs","repos_url":"https://api.github.com/users/tomykaira/repos","events_url":"https://api.github.com/users/tomykaira/events{/privacy}","received_events_url":"https://api.github.com/users/tomykaira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomykaira/rspec-parameterized","description":"RSpec::Parameterized supports simple parameterized test syntax in rspec.","fork":false,"url":"https://api.github.com/repos/tomykaira/rspec-parameterized","forks_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/forks","keys_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/teams","hooks_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/hooks","issue_events_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/issues/events{/number}","events_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/events","assignees_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/assignees{/user}","branches_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/branches{/branch}","tags_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/tags","blobs_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/statuses/{sha}","languages_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/languages","stargazers_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/stargazers","contributors_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/contributors","subscribers_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/subscribers","subscription_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/subscription","commits_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/contents/{+path}","compare_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/merges","archive_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/downloads","issues_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/issues{/number}","pulls_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls{/number}","milestones_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/milestones{/number}","notifications_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/labels{/name}","releases_url":"https://api.github.com/repos/tomykaira/rspec-parameterized/releases{/id}","created_at":"2012-05-20T02:37:42Z","updated_at":"2015-09-18T02:15:23Z","pushed_at":"2015-09-18T02:07:21Z","git_url":"git://github.com/tomykaira/rspec-parameterized.git","ssh_url":"git@github.com:tomykaira/rspec-parameterized.git","clone_url":"https://github.com/tomykaira/rspec-parameterized.git","svn_url":"https://github.com/tomykaira/rspec-parameterized","homepage":"","size":363,"stargazers_count":96,"watchers_count":96,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":96,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/25"},"html":{"href":"https://github.com/tomykaira/rspec-parameterized/pull/25"},"issue":{"href":"https://api.github.com/repos/tomykaira/rspec-parameterized/issues/25"},"comments":{"href":"https://api.github.com/repos/tomykaira/rspec-parameterized/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomykaira/rspec-parameterized/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/tomykaira/rspec-parameterized/statuses/1941cd14397fb1c740577bb8707efcb76ba6b705"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":60,"deletions":10,"changed_files":2}}