{"action":"created","comment":{"url":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/comments/205720122","pull_request_review_id":141046339,"id":205720122,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTcyMDEyMg==","diff_hunk":"@@ -139,6 +139,31 @@ Passes if form object has a field with wanted params\n expect(view.form).to have_field(node: input, type: 'text', id: 'user-first-name')\n ```\n \n+### Entity specs\n+Passes if argument type has a matching with type\n+\n+The following types are allowed:\n+  - `Type::String`\n+  - `Type::Symbol`\n+  - `Type::Hash`\n+  - `Type::Array`\n+  - `Type::Integer`\n+  - `Type::Boolean`\n+  \n+#### `have_attribute`\n+Passes if `:name` has `Type::String` type\n+\n+``` ruby\n+it { expect(User).to have_attribute(:name, Type::String) }\n+```\n+\n+#### `have_attributes`\n+Passes if `:name` has `Type::String` type and `:age` has `Type::Integer` type\n+\n+``` ruby\n+it { expect(User).to have_attributes(name: Type::String, age: Type::Integer) }","path":"README.md","position":26,"original_position":26,"commit_id":"fe1ee7f2293e8b12c4bf062ce7bcc698e16b8dd1","original_commit_id":"fe1ee7f2293e8b12c4bf062ce7bcc698e16b8dd1","user":{"login":"davydovanton","id":1147484,"node_id":"MDQ6VXNlcjExNDc0ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1147484?v=4","gravatar_id":"","url":"https://api.github.com/users/davydovanton","html_url":"https://github.com/davydovanton","followers_url":"https://api.github.com/users/davydovanton/followers","following_url":"https://api.github.com/users/davydovanton/following{/other_user}","gists_url":"https://api.github.com/users/davydovanton/gists{/gist_id}","starred_url":"https://api.github.com/users/davydovanton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davydovanton/subscriptions","organizations_url":"https://api.github.com/users/davydovanton/orgs","repos_url":"https://api.github.com/users/davydovanton/repos","events_url":"https://api.github.com/users/davydovanton/events{/privacy}","received_events_url":"https://api.github.com/users/davydovanton/received_events","type":"User","site_admin":false},"body":"💯 👏 ","created_at":"2018-07-27T09:37:38Z","updated_at":"2018-07-27T09:38:19Z","html_url":"https://github.com/davydovanton/rspec-hanami/pull/16#discussion_r205720122","pull_request_url":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/comments/205720122"},"html":{"href":"https://github.com/davydovanton/rspec-hanami/pull/16#discussion_r205720122"},"pull_request":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16","id":203978175,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzOTc4MTc1","html_url":"https://github.com/davydovanton/rspec-hanami/pull/16","diff_url":"https://github.com/davydovanton/rspec-hanami/pull/16.diff","patch_url":"https://github.com/davydovanton/rspec-hanami/pull/16.patch","issue_url":"https://api.github.com/repos/davydovanton/rspec-hanami/issues/16","number":16,"state":"open","locked":false,"title":"Add entity schema matchers","user":{"login":"Kalinichev-Ilya","id":21128181,"node_id":"MDQ6VXNlcjIxMTI4MTgx","avatar_url":"https://avatars3.githubusercontent.com/u/21128181?v=4","gravatar_id":"","url":"https://api.github.com/users/Kalinichev-Ilya","html_url":"https://github.com/Kalinichev-Ilya","followers_url":"https://api.github.com/users/Kalinichev-Ilya/followers","following_url":"https://api.github.com/users/Kalinichev-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Kalinichev-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Kalinichev-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kalinichev-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Kalinichev-Ilya/orgs","repos_url":"https://api.github.com/users/Kalinichev-Ilya/repos","events_url":"https://api.github.com/users/Kalinichev-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Kalinichev-Ilya/received_events","type":"User","site_admin":false},"body":"#11 **Entity specs**\r\nPasses if argument type has a matching with type.\r\nFor using this matchers, you can call `have_attribute` for single argument or `have_attributes` for multiple arguments:\r\n```ruby\r\nit { expect(User).to have_attribute(:name, Type::String) }\r\nit { expect(User).to have_attributes(name: Type::String, ...) }\r\n```","created_at":"2018-07-25T22:13:15Z","updated_at":"2018-07-27T09:38:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2fb6f958e09b591adb1628196510cb993f36213","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16/commits","review_comments_url":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16/comments","review_comment_url":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/comments{/number}","comments_url":"https://api.github.com/repos/davydovanton/rspec-hanami/issues/16/comments","statuses_url":"https://api.github.com/repos/davydovanton/rspec-hanami/statuses/fe1ee7f2293e8b12c4bf062ce7bcc698e16b8dd1","head":{"label":"Kalinichev-Ilya:test-entity-schema","ref":"test-entity-schema","sha":"fe1ee7f2293e8b12c4bf062ce7bcc698e16b8dd1","user":{"login":"Kalinichev-Ilya","id":21128181,"node_id":"MDQ6VXNlcjIxMTI4MTgx","avatar_url":"https://avatars3.githubusercontent.com/u/21128181?v=4","gravatar_id":"","url":"https://api.github.com/users/Kalinichev-Ilya","html_url":"https://github.com/Kalinichev-Ilya","followers_url":"https://api.github.com/users/Kalinichev-Ilya/followers","following_url":"https://api.github.com/users/Kalinichev-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Kalinichev-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Kalinichev-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kalinichev-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Kalinichev-Ilya/orgs","repos_url":"https://api.github.com/users/Kalinichev-Ilya/repos","events_url":"https://api.github.com/users/Kalinichev-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Kalinichev-Ilya/received_events","type":"User","site_admin":false},"repo":{"id":141848953,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE4NDg5NTM=","name":"rspec-hanami","full_name":"Kalinichev-Ilya/rspec-hanami","owner":{"login":"Kalinichev-Ilya","id":21128181,"node_id":"MDQ6VXNlcjIxMTI4MTgx","avatar_url":"https://avatars3.githubusercontent.com/u/21128181?v=4","gravatar_id":"","url":"https://api.github.com/users/Kalinichev-Ilya","html_url":"https://github.com/Kalinichev-Ilya","followers_url":"https://api.github.com/users/Kalinichev-Ilya/followers","following_url":"https://api.github.com/users/Kalinichev-Ilya/following{/other_user}","gists_url":"https://api.github.com/users/Kalinichev-Ilya/gists{/gist_id}","starred_url":"https://api.github.com/users/Kalinichev-Ilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kalinichev-Ilya/subscriptions","organizations_url":"https://api.github.com/users/Kalinichev-Ilya/orgs","repos_url":"https://api.github.com/users/Kalinichev-Ilya/repos","events_url":"https://api.github.com/users/Kalinichev-Ilya/events{/privacy}","received_events_url":"https://api.github.com/users/Kalinichev-Ilya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kalinichev-Ilya/rspec-hanami","description":"RSpec Matchers for Hanami","fork":true,"url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami","forks_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/forks","keys_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/teams","hooks_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/hooks","issue_events_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/issues/events{/number}","events_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/events","assignees_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/assignees{/user}","branches_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/branches{/branch}","tags_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/tags","blobs_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/statuses/{sha}","languages_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/languages","stargazers_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/stargazers","contributors_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/contributors","subscribers_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/subscribers","subscription_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/subscription","commits_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/contents/{+path}","compare_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/merges","archive_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/downloads","issues_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/issues{/number}","pulls_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/pulls{/number}","milestones_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/milestones{/number}","notifications_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/labels{/name}","releases_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/releases{/id}","deployments_url":"https://api.github.com/repos/Kalinichev-Ilya/rspec-hanami/deployments","created_at":"2018-07-21T22:09:36Z","updated_at":"2018-07-21T22:09:38Z","pushed_at":"2018-07-25T22:18:58Z","git_url":"git://github.com/Kalinichev-Ilya/rspec-hanami.git","ssh_url":"git@github.com:Kalinichev-Ilya/rspec-hanami.git","clone_url":"https://github.com/Kalinichev-Ilya/rspec-hanami.git","svn_url":"https://github.com/Kalinichev-Ilya/rspec-hanami","homepage":null,"size":40,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"davydovanton:master","ref":"master","sha":"09949c788a1ca4f88391939f41f8384173f92fc6","user":{"login":"davydovanton","id":1147484,"node_id":"MDQ6VXNlcjExNDc0ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1147484?v=4","gravatar_id":"","url":"https://api.github.com/users/davydovanton","html_url":"https://github.com/davydovanton","followers_url":"https://api.github.com/users/davydovanton/followers","following_url":"https://api.github.com/users/davydovanton/following{/other_user}","gists_url":"https://api.github.com/users/davydovanton/gists{/gist_id}","starred_url":"https://api.github.com/users/davydovanton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davydovanton/subscriptions","organizations_url":"https://api.github.com/users/davydovanton/orgs","repos_url":"https://api.github.com/users/davydovanton/repos","events_url":"https://api.github.com/users/davydovanton/events{/privacy}","received_events_url":"https://api.github.com/users/davydovanton/received_events","type":"User","site_admin":false},"repo":{"id":59657468,"node_id":"MDEwOlJlcG9zaXRvcnk1OTY1NzQ2OA==","name":"rspec-hanami","full_name":"davydovanton/rspec-hanami","owner":{"login":"davydovanton","id":1147484,"node_id":"MDQ6VXNlcjExNDc0ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1147484?v=4","gravatar_id":"","url":"https://api.github.com/users/davydovanton","html_url":"https://github.com/davydovanton","followers_url":"https://api.github.com/users/davydovanton/followers","following_url":"https://api.github.com/users/davydovanton/following{/other_user}","gists_url":"https://api.github.com/users/davydovanton/gists{/gist_id}","starred_url":"https://api.github.com/users/davydovanton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davydovanton/subscriptions","organizations_url":"https://api.github.com/users/davydovanton/orgs","repos_url":"https://api.github.com/users/davydovanton/repos","events_url":"https://api.github.com/users/davydovanton/events{/privacy}","received_events_url":"https://api.github.com/users/davydovanton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davydovanton/rspec-hanami","description":"RSpec Matchers for Hanami","fork":false,"url":"https://api.github.com/repos/davydovanton/rspec-hanami","forks_url":"https://api.github.com/repos/davydovanton/rspec-hanami/forks","keys_url":"https://api.github.com/repos/davydovanton/rspec-hanami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davydovanton/rspec-hanami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davydovanton/rspec-hanami/teams","hooks_url":"https://api.github.com/repos/davydovanton/rspec-hanami/hooks","issue_events_url":"https://api.github.com/repos/davydovanton/rspec-hanami/issues/events{/number}","events_url":"https://api.github.com/repos/davydovanton/rspec-hanami/events","assignees_url":"https://api.github.com/repos/davydovanton/rspec-hanami/assignees{/user}","branches_url":"https://api.github.com/repos/davydovanton/rspec-hanami/branches{/branch}","tags_url":"https://api.github.com/repos/davydovanton/rspec-hanami/tags","blobs_url":"https://api.github.com/repos/davydovanton/rspec-hanami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davydovanton/rspec-hanami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davydovanton/rspec-hanami/git/refs{/sha}","trees_url":"https://api.github.com/repos/davydovanton/rspec-hanami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davydovanton/rspec-hanami/statuses/{sha}","languages_url":"https://api.github.com/repos/davydovanton/rspec-hanami/languages","stargazers_url":"https://api.github.com/repos/davydovanton/rspec-hanami/stargazers","contributors_url":"https://api.github.com/repos/davydovanton/rspec-hanami/contributors","subscribers_url":"https://api.github.com/repos/davydovanton/rspec-hanami/subscribers","subscription_url":"https://api.github.com/repos/davydovanton/rspec-hanami/subscription","commits_url":"https://api.github.com/repos/davydovanton/rspec-hanami/commits{/sha}","git_commits_url":"https://api.github.com/repos/davydovanton/rspec-hanami/git/commits{/sha}","comments_url":"https://api.github.com/repos/davydovanton/rspec-hanami/comments{/number}","issue_comment_url":"https://api.github.com/repos/davydovanton/rspec-hanami/issues/comments{/number}","contents_url":"https://api.github.com/repos/davydovanton/rspec-hanami/contents/{+path}","compare_url":"https://api.github.com/repos/davydovanton/rspec-hanami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davydovanton/rspec-hanami/merges","archive_url":"https://api.github.com/repos/davydovanton/rspec-hanami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davydovanton/rspec-hanami/downloads","issues_url":"https://api.github.com/repos/davydovanton/rspec-hanami/issues{/number}","pulls_url":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls{/number}","milestones_url":"https://api.github.com/repos/davydovanton/rspec-hanami/milestones{/number}","notifications_url":"https://api.github.com/repos/davydovanton/rspec-hanami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davydovanton/rspec-hanami/labels{/name}","releases_url":"https://api.github.com/repos/davydovanton/rspec-hanami/releases{/id}","deployments_url":"https://api.github.com/repos/davydovanton/rspec-hanami/deployments","created_at":"2016-05-25T11:27:33Z","updated_at":"2018-07-25T20:48:27Z","pushed_at":"2018-07-25T22:18:59Z","git_url":"git://github.com/davydovanton/rspec-hanami.git","ssh_url":"git@github.com:davydovanton/rspec-hanami.git","clone_url":"https://github.com/davydovanton/rspec-hanami.git","svn_url":"https://github.com/davydovanton/rspec-hanami","homepage":null,"size":38,"stargazers_count":33,"watchers_count":33,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":6,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16"},"html":{"href":"https://github.com/davydovanton/rspec-hanami/pull/16"},"issue":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/issues/16"},"comments":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/davydovanton/rspec-hanami/statuses/fe1ee7f2293e8b12c4bf062ce7bcc698e16b8dd1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"davydovanton"}}