{"action":"created","comment":{"url":"https://api.github.com/repos/wagn/wikirate/pulls/comments/46546276","id":46546276,"diff_hunk":"@@ -1,41 +1,49 @@\n describe Card::Set::Right::WikirateArticle do\n-  describe \"#handle_edit_article\" do\n+  describe '#handle_edit_article' do\n     before do\n       Card::Env.params[:edit_article] = true\n-      @company = Card.create :name=>\"company1\",:type_id=>Card::WikirateCompanyID\n-      @topic = Card.create :name=>\"topic1\",:type_id=>Card::WikirateTopicID\n+      @company = Card.create name: 'company1', type_id: Card::WikirateCompanyID\n+      @topic = Card.create name: 'topic1', type_id: Card::WikirateTopicID\n       @claim = get_a_sample_claim\n-      Card::Env.params[:citable]=@claim.name\n-      @citation = \"Death Star uses dark side of the Force {{Death Star uses dark side of the Force|cite}}\"\n+      Card::Env.params[:citable] = @claim.name\n+      @citation = 'Death Star uses dark side of the Force '\\\n+                  '{{Death Star uses dark side of the Force|cite}}'\n     end\n-    context \"missing view\" do\n-      it \"render editor with empty content with citation tips\" do\n-        article = Card.new :name=>\"#{@company.name}+#{@topic.name}+#{Card[:wikirate_article].name}\",:type=>\"basic\"\n+    context 'missing view' do\n+      it 'render editor with empty content with citation tips' do\n+        name = \"#{@company.name}+#{@topic.name}+#{Card[:wikirate_article].name}\"\n+        article = Card.new name: name, type: 'basic'\n         html = article.format.render_missing\n-\n-        expect(html).to have_tag(\"div\",:with=>{:class=>\"claim-tip\"}) do\n-          with_tag \"textarea\",:with=>{:id=>\"citable_claim\"},:text=>/#{@citation}/\n+        id = 'citable_note'\n+        expect(html).to have_tag('div', with: { class: 'note-tip' }) do\n+          with_tag 'textarea', with: { id: id }, text: /#{@citation}/\n         end\n-        expect(html).to have_tag(\"textarea\",:with=>{:class=>\"tinymce-textarea\",:name=>\"card[content]\"})\n-\n+        expect(html).to have_tag('textarea', with: { class: 'tinymce-textarea',\n+                                                     name: 'card[content]' })\n       end\n     end\n-    context \"content and titled_with_edits views\" do\n-      it \"render editor with content with citation tips\" do\n-        overview_name = \"#{@company.name}+#{@topic.name}+#{Card[:wikirate_article].name}\"\n-        article = Card.create :name=>overview_name, :type=>\"basic\",:content=>\"hello world\"\n+    context 'content and titled_with_edits views' do\n+      it 'render editor with content with citation tips' do\n+        overview_name = \"#{@company.name}+#{@topic.name}+\"\\\n+                        \"#{Card[:wikirate_article].name}\"\n+        article = Card.create name: overview_name, type: 'basic',\n+                              content: 'hello world'\n         html = article.format.render_content\n-        expect(html).to have_tag(\"div\",:with=>{:class=>\"claim-tip\"}) do\n-          with_tag \"textarea\",:with=>{:id=>\"citable_claim\"},:text=>/#{@citation}/\n+        id = 'citable_note'\n+        expect(html).to have_tag('div', with: { class: 'note-tip' }) do\n+          with_tag 'textarea', with: { id: id }, text: /#{@citation}/","path":"mod/wikirate/spec/set/right/wikirate_article_spec.rb","position":53,"original_position":53,"commit_id":"69145255dd33dc359cd356f52a70f47d352f303b","original_commit_id":"69145255dd33dc359cd356f52a70f47d352f303b","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-12-03T12:42:11Z","updated_at":"2015-12-03T12:42:11Z","html_url":"https://github.com/wagn/wikirate/pull/289#discussion_r46546276","pull_request_url":"https://api.github.com/repos/wagn/wikirate/pulls/289","_links":{"self":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/comments/46546276"},"html":{"href":"https://github.com/wagn/wikirate/pull/289#discussion_r46546276"},"pull_request":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/289"}}},"pull_request":{"url":"https://api.github.com/repos/wagn/wikirate/pulls/289","id":52399103,"html_url":"https://github.com/wagn/wikirate/pull/289","diff_url":"https://github.com/wagn/wikirate/pull/289.diff","patch_url":"https://github.com/wagn/wikirate/pull/289.patch","issue_url":"https://api.github.com/repos/wagn/wikirate/issues/289","number":289,"state":"open","locked":false,"title":"migrate tags to topic, update analysis_contrubtion and cached expiration","user":{"login":"chuenlok","id":1924561,"avatar_url":"https://avatars.githubusercontent.com/u/1924561?v=3","gravatar_id":"","url":"https://api.github.com/users/chuenlok","html_url":"https://github.com/chuenlok","followers_url":"https://api.github.com/users/chuenlok/followers","following_url":"https://api.github.com/users/chuenlok/following{/other_user}","gists_url":"https://api.github.com/users/chuenlok/gists{/gist_id}","starred_url":"https://api.github.com/users/chuenlok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuenlok/subscriptions","organizations_url":"https://api.github.com/users/chuenlok/orgs","repos_url":"https://api.github.com/users/chuenlok/repos","events_url":"https://api.github.com/users/chuenlok/events{/privacy}","received_events_url":"https://api.github.com/users/chuenlok/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-02T14:05:24Z","updated_at":"2015-12-03T12:42:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"167fd1a4a6b3312c1ab129e12f5589a18a07689c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wagn/wikirate/pulls/289/commits","review_comments_url":"https://api.github.com/repos/wagn/wikirate/pulls/289/comments","review_comment_url":"https://api.github.com/repos/wagn/wikirate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wagn/wikirate/issues/289/comments","statuses_url":"https://api.github.com/repos/wagn/wikirate/statuses/69145255dd33dc359cd356f52a70f47d352f303b","head":{"label":"chuenlok:topic_migration","ref":"topic_migration","sha":"69145255dd33dc359cd356f52a70f47d352f303b","user":{"login":"chuenlok","id":1924561,"avatar_url":"https://avatars.githubusercontent.com/u/1924561?v=3","gravatar_id":"","url":"https://api.github.com/users/chuenlok","html_url":"https://github.com/chuenlok","followers_url":"https://api.github.com/users/chuenlok/followers","following_url":"https://api.github.com/users/chuenlok/following{/other_user}","gists_url":"https://api.github.com/users/chuenlok/gists{/gist_id}","starred_url":"https://api.github.com/users/chuenlok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuenlok/subscriptions","organizations_url":"https://api.github.com/users/chuenlok/orgs","repos_url":"https://api.github.com/users/chuenlok/repos","events_url":"https://api.github.com/users/chuenlok/events{/privacy}","received_events_url":"https://api.github.com/users/chuenlok/received_events","type":"User","site_admin":false},"repo":{"id":21124075,"name":"wikirate","full_name":"chuenlok/wikirate","owner":{"login":"chuenlok","id":1924561,"avatar_url":"https://avatars.githubusercontent.com/u/1924561?v=3","gravatar_id":"","url":"https://api.github.com/users/chuenlok","html_url":"https://github.com/chuenlok","followers_url":"https://api.github.com/users/chuenlok/followers","following_url":"https://api.github.com/users/chuenlok/following{/other_user}","gists_url":"https://api.github.com/users/chuenlok/gists{/gist_id}","starred_url":"https://api.github.com/users/chuenlok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuenlok/subscriptions","organizations_url":"https://api.github.com/users/chuenlok/orgs","repos_url":"https://api.github.com/users/chuenlok/repos","events_url":"https://api.github.com/users/chuenlok/events{/privacy}","received_events_url":"https://api.github.com/users/chuenlok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chuenlok/wikirate","description":"Wikirate.org is a new independent wiki platform with the mission to promote corporate transparency.","fork":true,"url":"https://api.github.com/repos/chuenlok/wikirate","forks_url":"https://api.github.com/repos/chuenlok/wikirate/forks","keys_url":"https://api.github.com/repos/chuenlok/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chuenlok/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chuenlok/wikirate/teams","hooks_url":"https://api.github.com/repos/chuenlok/wikirate/hooks","issue_events_url":"https://api.github.com/repos/chuenlok/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/chuenlok/wikirate/events","assignees_url":"https://api.github.com/repos/chuenlok/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/chuenlok/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/chuenlok/wikirate/tags","blobs_url":"https://api.github.com/repos/chuenlok/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chuenlok/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chuenlok/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/chuenlok/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chuenlok/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/chuenlok/wikirate/languages","stargazers_url":"https://api.github.com/repos/chuenlok/wikirate/stargazers","contributors_url":"https://api.github.com/repos/chuenlok/wikirate/contributors","subscribers_url":"https://api.github.com/repos/chuenlok/wikirate/subscribers","subscription_url":"https://api.github.com/repos/chuenlok/wikirate/subscription","commits_url":"https://api.github.com/repos/chuenlok/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/chuenlok/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/chuenlok/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/chuenlok/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/chuenlok/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/chuenlok/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chuenlok/wikirate/merges","archive_url":"https://api.github.com/repos/chuenlok/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chuenlok/wikirate/downloads","issues_url":"https://api.github.com/repos/chuenlok/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/chuenlok/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/chuenlok/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/chuenlok/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chuenlok/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/chuenlok/wikirate/releases{/id}","created_at":"2014-06-23T11:37:42Z","updated_at":"2015-05-08T17:22:34Z","pushed_at":"2015-12-03T12:42:04Z","git_url":"git://github.com/chuenlok/wikirate.git","ssh_url":"git@github.com:chuenlok/wikirate.git","clone_url":"https://github.com/chuenlok/wikirate.git","svn_url":"https://github.com/chuenlok/wikirate","homepage":"http://wikirate.org","size":86027,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"wagn:master","ref":"master","sha":"f2d393340c81a9e85ca11349dfc821019138e17b","user":{"login":"wagn","id":20722,"avatar_url":"https://avatars.githubusercontent.com/u/20722?v=3","gravatar_id":"","url":"https://api.github.com/users/wagn","html_url":"https://github.com/wagn","followers_url":"https://api.github.com/users/wagn/followers","following_url":"https://api.github.com/users/wagn/following{/other_user}","gists_url":"https://api.github.com/users/wagn/gists{/gist_id}","starred_url":"https://api.github.com/users/wagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagn/subscriptions","organizations_url":"https://api.github.com/users/wagn/orgs","repos_url":"https://api.github.com/users/wagn/repos","events_url":"https://api.github.com/users/wagn/events{/privacy}","received_events_url":"https://api.github.com/users/wagn/received_events","type":"User","site_admin":false},"repo":{"id":15884166,"name":"wikirate","full_name":"wagn/wikirate","owner":{"login":"wagn","id":20722,"avatar_url":"https://avatars.githubusercontent.com/u/20722?v=3","gravatar_id":"","url":"https://api.github.com/users/wagn","html_url":"https://github.com/wagn","followers_url":"https://api.github.com/users/wagn/followers","following_url":"https://api.github.com/users/wagn/following{/other_user}","gists_url":"https://api.github.com/users/wagn/gists{/gist_id}","starred_url":"https://api.github.com/users/wagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagn/subscriptions","organizations_url":"https://api.github.com/users/wagn/orgs","repos_url":"https://api.github.com/users/wagn/repos","events_url":"https://api.github.com/users/wagn/events{/privacy}","received_events_url":"https://api.github.com/users/wagn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wagn/wikirate","description":"","fork":false,"url":"https://api.github.com/repos/wagn/wikirate","forks_url":"https://api.github.com/repos/wagn/wikirate/forks","keys_url":"https://api.github.com/repos/wagn/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wagn/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wagn/wikirate/teams","hooks_url":"https://api.github.com/repos/wagn/wikirate/hooks","issue_events_url":"https://api.github.com/repos/wagn/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/wagn/wikirate/events","assignees_url":"https://api.github.com/repos/wagn/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/wagn/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/wagn/wikirate/tags","blobs_url":"https://api.github.com/repos/wagn/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wagn/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wagn/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/wagn/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wagn/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/wagn/wikirate/languages","stargazers_url":"https://api.github.com/repos/wagn/wikirate/stargazers","contributors_url":"https://api.github.com/repos/wagn/wikirate/contributors","subscribers_url":"https://api.github.com/repos/wagn/wikirate/subscribers","subscription_url":"https://api.github.com/repos/wagn/wikirate/subscription","commits_url":"https://api.github.com/repos/wagn/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/wagn/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/wagn/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/wagn/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/wagn/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/wagn/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wagn/wikirate/merges","archive_url":"https://api.github.com/repos/wagn/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wagn/wikirate/downloads","issues_url":"https://api.github.com/repos/wagn/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/wagn/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/wagn/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/wagn/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wagn/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/wagn/wikirate/releases{/id}","created_at":"2014-01-13T22:29:39Z","updated_at":"2015-05-08T17:01:43Z","pushed_at":"2015-12-03T12:42:05Z","git_url":"git://github.com/wagn/wikirate.git","ssh_url":"git@github.com:wagn/wikirate.git","clone_url":"https://github.com/wagn/wikirate.git","svn_url":"https://github.com/wagn/wikirate","homepage":null,"size":86090,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/289"},"html":{"href":"https://github.com/wagn/wikirate/pull/289"},"issue":{"href":"https://api.github.com/repos/wagn/wikirate/issues/289"},"comments":{"href":"https://api.github.com/repos/wagn/wikirate/issues/289/comments"},"review_comments":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/289/comments"},"review_comment":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/289/commits"},"statuses":{"href":"https://api.github.com/repos/wagn/wikirate/statuses/69145255dd33dc359cd356f52a70f47d352f303b"}}}}