{"action":"created","comment":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/48680337","id":48680337,"diff_hunk":"@@ -16,4 +16,42 @@\n \n   # TODO: add more tests\n \n-end\n\\ No newline at end of file\n+  describe \"save\" do\n+\n+\t\tbefore do\n+\t\t\t@user = User.new\n+      @user.login = \"mynamepseud\"\n+      @user.age_over_13 = \"1\"\n+      @user.terms_of_service = \"1\"\n+      @user.email = \"foo1@archiveofourown.org\"\n+      @user.password = \"password\"\n+      @user.save\n+    end\n+\n+    before(:each) do\n+      @pseud = Pseud.new\n+      @pseud.user_id = @user.id\n+      @pseud.name = \"MyName\"\n+    end\n+    \n+    it \"should save a minimalistic pseud\" do\n+      @pseud.should be_valid_verbose\n+      @pseud.save.should be_true\n+      @pseud.errors.should be_empty\n+    end\n+\n+    it \"should not save pseud with too-long alt text for icon\" do\n+      @pseud.icon_alt_text = \"Something that is too long blah blah blah blah blah blah blah blah blah blah blah blah blah blah\"\n+      @pseud.save.should be_false\n+      @pseud.errors[:icon_alt_text].should_not be_empty\n+    end\n+    \n+    it \"should not save pseud with too-long comment text for icon\" # do\n+      # @pseud.icon_comment_text = \"Something that is too long blah blah blah blah blah blah blah blah blah blah blah blah blah blah\"\n+      # @pseud.save.should be_false","path":"spec/models/pseud_spec.rb","position":38,"original_position":38,"commit_id":"41aa96bc7175156e636de238200355ceaa6fd2a8","original_commit_id":"41aa96bc7175156e636de238200355ceaa6fd2a8","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":"Incorrect indentation detected (column 6 instead of 4).","created_at":"2016-01-01T21:05:38Z","updated_at":"2016-01-01T21:05:38Z","html_url":"https://github.com/otwcode/otwarchive/pull/2264#discussion_r48680337","pull_request_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264","_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/48680337"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/2264#discussion_r48680337"},"pull_request":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264"}}},"pull_request":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264","id":54757593,"html_url":"https://github.com/otwcode/otwarchive/pull/2264","diff_url":"https://github.com/otwcode/otwarchive/pull/2264.diff","patch_url":"https://github.com/otwcode/otwarchive/pull/2264.patch","issue_url":"https://api.github.com/repos/otwcode/otwarchive/issues/2264","number":2264,"state":"open","locked":false,"title":"Rspec draft for comments","user":{"login":"cesy","id":570999,"avatar_url":"https://avatars.githubusercontent.com/u/570999?v=3","gravatar_id":"","url":"https://api.github.com/users/cesy","html_url":"https://github.com/cesy","followers_url":"https://api.github.com/users/cesy/followers","following_url":"https://api.github.com/users/cesy/following{/other_user}","gists_url":"https://api.github.com/users/cesy/gists{/gist_id}","starred_url":"https://api.github.com/users/cesy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesy/subscriptions","organizations_url":"https://api.github.com/users/cesy/orgs","repos_url":"https://api.github.com/users/cesy/repos","events_url":"https://api.github.com/users/cesy/events{/privacy}","received_events_url":"https://api.github.com/users/cesy/received_events","type":"User","site_admin":false},"body":"Most of this was written 4 years ago, but I'm putting it out there in case some of it's still useful. Open questions:\r\n\r\n* It looks like we don't have any view specs, do we want those?\r\n* Is webrat still the best gem or should we research any new alternatives?\r\n* It beefs up the pseud model spec a little, which is probably useful - I'm happy to split that bit out into a clean PR if people like it\r\n* We can probably scrap that draft in work_spec - I'll tidy up the commits if people want this\r\n* Various bits to make it work, probably need some more commenting as I can't remember why in a few cases","created_at":"2015-12-29T21:01:15Z","updated_at":"2016-01-01T21:05:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a95dd2a44ad6b147972ff18fd30e291d91b402a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264/commits","review_comments_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264/comments","review_comment_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/issues/2264/comments","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/41aa96bc7175156e636de238200355ceaa6fd2a8","head":{"label":"cesy:rspec2","ref":"rspec2","sha":"41aa96bc7175156e636de238200355ceaa6fd2a8","user":{"login":"cesy","id":570999,"avatar_url":"https://avatars.githubusercontent.com/u/570999?v=3","gravatar_id":"","url":"https://api.github.com/users/cesy","html_url":"https://github.com/cesy","followers_url":"https://api.github.com/users/cesy/followers","following_url":"https://api.github.com/users/cesy/following{/other_user}","gists_url":"https://api.github.com/users/cesy/gists{/gist_id}","starred_url":"https://api.github.com/users/cesy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesy/subscriptions","organizations_url":"https://api.github.com/users/cesy/orgs","repos_url":"https://api.github.com/users/cesy/repos","events_url":"https://api.github.com/users/cesy/events{/privacy}","received_events_url":"https://api.github.com/users/cesy/received_events","type":"User","site_admin":false},"repo":{"id":1339575,"name":"otwarchive","full_name":"cesy/otwarchive","owner":{"login":"cesy","id":570999,"avatar_url":"https://avatars.githubusercontent.com/u/570999?v=3","gravatar_id":"","url":"https://api.github.com/users/cesy","html_url":"https://github.com/cesy","followers_url":"https://api.github.com/users/cesy/followers","following_url":"https://api.github.com/users/cesy/following{/other_user}","gists_url":"https://api.github.com/users/cesy/gists{/gist_id}","starred_url":"https://api.github.com/users/cesy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesy/subscriptions","organizations_url":"https://api.github.com/users/cesy/orgs","repos_url":"https://api.github.com/users/cesy/repos","events_url":"https://api.github.com/users/cesy/events{/privacy}","received_events_url":"https://api.github.com/users/cesy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cesy/otwarchive","description":"The Organization for Transformative Works - Archive Project","fork":true,"url":"https://api.github.com/repos/cesy/otwarchive","forks_url":"https://api.github.com/repos/cesy/otwarchive/forks","keys_url":"https://api.github.com/repos/cesy/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cesy/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cesy/otwarchive/teams","hooks_url":"https://api.github.com/repos/cesy/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/cesy/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/cesy/otwarchive/events","assignees_url":"https://api.github.com/repos/cesy/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/cesy/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/cesy/otwarchive/tags","blobs_url":"https://api.github.com/repos/cesy/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cesy/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cesy/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/cesy/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cesy/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/cesy/otwarchive/languages","stargazers_url":"https://api.github.com/repos/cesy/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/cesy/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/cesy/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/cesy/otwarchive/subscription","commits_url":"https://api.github.com/repos/cesy/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/cesy/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/cesy/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/cesy/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/cesy/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/cesy/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cesy/otwarchive/merges","archive_url":"https://api.github.com/repos/cesy/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cesy/otwarchive/downloads","issues_url":"https://api.github.com/repos/cesy/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/cesy/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/cesy/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/cesy/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cesy/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/cesy/otwarchive/releases{/id}","created_at":"2011-02-07T21:42:32Z","updated_at":"2015-12-28T17:45:31Z","pushed_at":"2016-01-01T21:05:33Z","git_url":"git://github.com/cesy/otwarchive.git","ssh_url":"git@github.com:cesy/otwarchive.git","clone_url":"https://github.com/cesy/otwarchive.git","svn_url":"https://github.com/cesy/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":48874,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"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":3,"default_branch":"master"}},"base":{"label":"otwcode:master","ref":"master","sha":"ffd0288bae3ee26c3eb9e2fefa860a20e8d762bb","user":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"repo":{"id":1338040,"name":"otwarchive","full_name":"otwcode/otwarchive","owner":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otwcode/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":false,"url":"https://api.github.com/repos/otwcode/otwarchive","forks_url":"https://api.github.com/repos/otwcode/otwarchive/forks","keys_url":"https://api.github.com/repos/otwcode/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otwcode/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otwcode/otwarchive/teams","hooks_url":"https://api.github.com/repos/otwcode/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/otwcode/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/otwcode/otwarchive/events","assignees_url":"https://api.github.com/repos/otwcode/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/otwcode/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/otwcode/otwarchive/tags","blobs_url":"https://api.github.com/repos/otwcode/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otwcode/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otwcode/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/otwcode/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/otwcode/otwarchive/languages","stargazers_url":"https://api.github.com/repos/otwcode/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/otwcode/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/otwcode/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/otwcode/otwarchive/subscription","commits_url":"https://api.github.com/repos/otwcode/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/otwcode/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/otwcode/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/otwcode/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/otwcode/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otwcode/otwarchive/merges","archive_url":"https://api.github.com/repos/otwcode/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otwcode/otwarchive/downloads","issues_url":"https://api.github.com/repos/otwcode/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/otwcode/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/otwcode/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/otwcode/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otwcode/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/otwcode/otwarchive/releases{/id}","created_at":"2011-02-07T14:50:58Z","updated_at":"2015-12-22T13:28:40Z","pushed_at":"2016-01-01T21:05:33Z","git_url":"git://github.com/otwcode/otwarchive.git","ssh_url":"git@github.com:otwcode/otwarchive.git","clone_url":"https://github.com/otwcode/otwarchive.git","svn_url":"https://github.com/otwcode/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":54684,"stargazers_count":174,"watchers_count":174,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":113,"mirror_url":null,"open_issues_count":40,"forks":113,"open_issues":40,"watchers":174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/2264"},"issue":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/2264"},"comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/2264/comments"},"review_comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264/comments"},"review_comment":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2264/commits"},"statuses":{"href":"https://api.github.com/repos/otwcode/otwarchive/statuses/41aa96bc7175156e636de238200355ceaa6fd2a8"}}}}