{"action":"created","comment":{"url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/comments/36740442","id":36740442,"diff_hunk":"@@ -1,5 +1,31 @@\n require \"rails_helper\"\n \n RSpec.describe Violin, type: :model do\n-  pending \"add some examples to (or delete) #{__FILE__}\"\n+  #pending \"add some examples to (or delete) #{__FILE__}\"\n+\n+  describe 'validations' do\n+    it {should validate_presence_of :color }\n+    it {should validate_presence_of :bow_included }\n+    it {should validate_presence_of :body_material }\n+    it {should validate_presence_of :string_count }\n+    it {should validate_presence_of :size }\n+    it {should validate_presence_of :weight }\n+    it {should validate_presence_of :product_id }\n+\n+    it {should validate_numericality_of :string_count }\n+    it {should validate_numericality_of :weight }\n+    it {should validate_numericality_of :product_id }\n+\n+    it {should allow_value(\"brown\").for(:color) }\n+    it {should allow_value(\"7/8\").for(:size)}\n+\n+    it {should_not allow_value(11).for(:bow_included)}\n+    it {should_not allow_value(\"aa\").for(:bow_included)}\n+    it {should_not allow_value(\"bbb\").for(:string_count) }","path":"spec/models/violin_spec.rb","position":25,"original_position":25,"commit_id":"b5b2773677ed4b6e861e5d236bd66411e92d65b6","original_commit_id":"b5b2773677ed4b6e861e5d236bd66411e92d65b6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Space missing inside {.","created_at":"2015-08-11T12:51:48Z","updated_at":"2015-08-11T12:51:48Z","html_url":"https://github.com/RubyBursaRelsohod/team_project/pull/50#discussion_r36740442","pull_request_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/comments/36740442"},"html":{"href":"https://github.com/RubyBursaRelsohod/team_project/pull/50#discussion_r36740442"},"pull_request":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50","id":42124995,"html_url":"https://github.com/RubyBursaRelsohod/team_project/pull/50","diff_url":"https://github.com/RubyBursaRelsohod/team_project/pull/50.diff","patch_url":"https://github.com/RubyBursaRelsohod/team_project/pull/50.patch","issue_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/50","number":50,"state":"open","locked":false,"title":"34 s manannikov","user":{"login":"Serg1i","id":6352533,"avatar_url":"https://avatars.githubusercontent.com/u/6352533?v=3","gravatar_id":"","url":"https://api.github.com/users/Serg1i","html_url":"https://github.com/Serg1i","followers_url":"https://api.github.com/users/Serg1i/followers","following_url":"https://api.github.com/users/Serg1i/following{/other_user}","gists_url":"https://api.github.com/users/Serg1i/gists{/gist_id}","starred_url":"https://api.github.com/users/Serg1i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serg1i/subscriptions","organizations_url":"https://api.github.com/users/Serg1i/orgs","repos_url":"https://api.github.com/users/Serg1i/repos","events_url":"https://api.github.com/users/Serg1i/events{/privacy}","received_events_url":"https://api.github.com/users/Serg1i/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-11T12:51:42Z","updated_at":"2015-08-11T12:51:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbc104b836eb4fea3a66fc751f68dad93d475d76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50/commits","review_comments_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50/comments","review_comment_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/50/comments","statuses_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/statuses/b5b2773677ed4b6e861e5d236bd66411e92d65b6","head":{"label":"RubyBursaRelsohod:34_S_Manannikov","ref":"34_S_Manannikov","sha":"b5b2773677ed4b6e861e5d236bd66411e92d65b6","user":{"login":"RubyBursaRelsohod","id":13592260,"avatar_url":"https://avatars.githubusercontent.com/u/13592260?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyBursaRelsohod","html_url":"https://github.com/RubyBursaRelsohod","followers_url":"https://api.github.com/users/RubyBursaRelsohod/followers","following_url":"https://api.github.com/users/RubyBursaRelsohod/following{/other_user}","gists_url":"https://api.github.com/users/RubyBursaRelsohod/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyBursaRelsohod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyBursaRelsohod/subscriptions","organizations_url":"https://api.github.com/users/RubyBursaRelsohod/orgs","repos_url":"https://api.github.com/users/RubyBursaRelsohod/repos","events_url":"https://api.github.com/users/RubyBursaRelsohod/events{/privacy}","received_events_url":"https://api.github.com/users/RubyBursaRelsohod/received_events","type":"Organization","site_admin":false},"repo":{"id":40019867,"name":"team_project","full_name":"RubyBursaRelsohod/team_project","owner":{"login":"RubyBursaRelsohod","id":13592260,"avatar_url":"https://avatars.githubusercontent.com/u/13592260?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyBursaRelsohod","html_url":"https://github.com/RubyBursaRelsohod","followers_url":"https://api.github.com/users/RubyBursaRelsohod/followers","following_url":"https://api.github.com/users/RubyBursaRelsohod/following{/other_user}","gists_url":"https://api.github.com/users/RubyBursaRelsohod/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyBursaRelsohod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyBursaRelsohod/subscriptions","organizations_url":"https://api.github.com/users/RubyBursaRelsohod/orgs","repos_url":"https://api.github.com/users/RubyBursaRelsohod/repos","events_url":"https://api.github.com/users/RubyBursaRelsohod/events{/privacy}","received_events_url":"https://api.github.com/users/RubyBursaRelsohod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RubyBursaRelsohod/team_project","description":"Musical Instruments Shop","fork":false,"url":"https://api.github.com/repos/RubyBursaRelsohod/team_project","forks_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/forks","keys_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/teams","hooks_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/hooks","issue_events_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/events{/number}","events_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/events","assignees_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/assignees{/user}","branches_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/branches{/branch}","tags_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/tags","blobs_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/statuses/{sha}","languages_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/languages","stargazers_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/stargazers","contributors_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/contributors","subscribers_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/subscribers","subscription_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/subscription","commits_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/contents/{+path}","compare_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/merges","archive_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/downloads","issues_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues{/number}","pulls_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls{/number}","milestones_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/milestones{/number}","notifications_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/labels{/name}","releases_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/releases{/id}","created_at":"2015-07-31T18:46:30Z","updated_at":"2015-08-09T09:48:23Z","pushed_at":"2015-08-11T12:51:43Z","git_url":"git://github.com/RubyBursaRelsohod/team_project.git","ssh_url":"git@github.com:RubyBursaRelsohod/team_project.git","clone_url":"https://github.com/RubyBursaRelsohod/team_project.git","svn_url":"https://github.com/RubyBursaRelsohod/team_project","homepage":"http://relsohod.herokuapp.com/","size":1191,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":1,"default_branch":"development"}},"base":{"label":"RubyBursaRelsohod:development","ref":"development","sha":"12965e4359b0ed18aeef4afa8b6318868142b2ee","user":{"login":"RubyBursaRelsohod","id":13592260,"avatar_url":"https://avatars.githubusercontent.com/u/13592260?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyBursaRelsohod","html_url":"https://github.com/RubyBursaRelsohod","followers_url":"https://api.github.com/users/RubyBursaRelsohod/followers","following_url":"https://api.github.com/users/RubyBursaRelsohod/following{/other_user}","gists_url":"https://api.github.com/users/RubyBursaRelsohod/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyBursaRelsohod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyBursaRelsohod/subscriptions","organizations_url":"https://api.github.com/users/RubyBursaRelsohod/orgs","repos_url":"https://api.github.com/users/RubyBursaRelsohod/repos","events_url":"https://api.github.com/users/RubyBursaRelsohod/events{/privacy}","received_events_url":"https://api.github.com/users/RubyBursaRelsohod/received_events","type":"Organization","site_admin":false},"repo":{"id":40019867,"name":"team_project","full_name":"RubyBursaRelsohod/team_project","owner":{"login":"RubyBursaRelsohod","id":13592260,"avatar_url":"https://avatars.githubusercontent.com/u/13592260?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyBursaRelsohod","html_url":"https://github.com/RubyBursaRelsohod","followers_url":"https://api.github.com/users/RubyBursaRelsohod/followers","following_url":"https://api.github.com/users/RubyBursaRelsohod/following{/other_user}","gists_url":"https://api.github.com/users/RubyBursaRelsohod/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyBursaRelsohod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyBursaRelsohod/subscriptions","organizations_url":"https://api.github.com/users/RubyBursaRelsohod/orgs","repos_url":"https://api.github.com/users/RubyBursaRelsohod/repos","events_url":"https://api.github.com/users/RubyBursaRelsohod/events{/privacy}","received_events_url":"https://api.github.com/users/RubyBursaRelsohod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RubyBursaRelsohod/team_project","description":"Musical Instruments Shop","fork":false,"url":"https://api.github.com/repos/RubyBursaRelsohod/team_project","forks_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/forks","keys_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/teams","hooks_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/hooks","issue_events_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/events{/number}","events_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/events","assignees_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/assignees{/user}","branches_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/branches{/branch}","tags_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/tags","blobs_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/statuses/{sha}","languages_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/languages","stargazers_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/stargazers","contributors_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/contributors","subscribers_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/subscribers","subscription_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/subscription","commits_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/contents/{+path}","compare_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/merges","archive_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/downloads","issues_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues{/number}","pulls_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls{/number}","milestones_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/milestones{/number}","notifications_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/labels{/name}","releases_url":"https://api.github.com/repos/RubyBursaRelsohod/team_project/releases{/id}","created_at":"2015-07-31T18:46:30Z","updated_at":"2015-08-09T09:48:23Z","pushed_at":"2015-08-11T12:51:43Z","git_url":"git://github.com/RubyBursaRelsohod/team_project.git","ssh_url":"git@github.com:RubyBursaRelsohod/team_project.git","clone_url":"https://github.com/RubyBursaRelsohod/team_project.git","svn_url":"https://github.com/RubyBursaRelsohod/team_project","homepage":"http://relsohod.herokuapp.com/","size":1191,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50"},"html":{"href":"https://github.com/RubyBursaRelsohod/team_project/pull/50"},"issue":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/50"},"comments":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/RubyBursaRelsohod/team_project/statuses/b5b2773677ed4b6e861e5d236bd66411e92d65b6"}}}}