{"action":"created","comment":{"url":"https://api.github.com/repos/HearthStats/hearthstats/pulls/comments/25078849","id":25078849,"diff_hunk":"@@ -0,0 +1,110 @@\n+require 'spec_helper'\n+describe 'arena_runs' do  \n+  before do\n+    sign_in_int\n+    visit '/arenas'\n+    page.find(\"#new_arena_run\").click\n+  end\n+\n+  #step 1 click on new arena run\n+  context 'create new Arena' do\n+    it 'should load create new Arena page' do\n+      page.should have_content 'New Arena Run'\n+    end\n+  end\n+  \n+  #step 2 choose your classes\n+  context 'choose classes' do\n+    it 'should choose Hunter as Classes' do\n+      select 'Hunter', :from => \"arena_run[klass_id]\"\n+      click_on 'Continue'\n+      page.status_code.should be 200\n+    end\n+\n+    it 'should choose Warlock as Classes' do\n+      select 'Warlock', :from => \"arena_run[klass_id]\"\n+      click_on 'Continue'\n+      page.status_code.should be 200\n+    end\n+  end\n+\n+  #step 3 choose results\n+  context 'choose result' do\n+    before do\n+      click_on 'Continue'\n+    end\n+    \n+    #3.1 choose play order\n+    it 'should have played first' do\n+      page.should_not have_button(\"Played First\",visible:true)\n+    end\n+\n+    #3.2 choose opponent classes\n+    it 'should choose opponents Class' do\n+      select 'Mage',:from => \"match[oppclass_id]\"\n+      page.status_code.should be 200\n+    end\n+\n+    #3.3 create entry\n+    it 'should create new win Arena Run' do\n+      page.find(\"#1\").click\n+      click_on 'Create entry'\n+      page.should have_selector('table tr', :count => 2)\n+    end\n+\n+    #it 'should create new defeated Arena Run' do\n+     # click_on 'Defeat'\n+      #click_on 'Create entry'\n+      #page.body.should have_content \n+    #end\n+\n+    #it 'should create new defeated Arena Run' do\n+     # click_on 'Defeat'\n+    #  click_on 'Create entry'\n+      #search how to check text in yellow\n+      #page.body.should have_content \n+   # end","path":"spec/features/arena_runs_spec.rb","position":66,"original_position":66,"commit_id":"df7ea2689d6239f7a37c641877aa44499861db2f","original_commit_id":"df7ea2689d6239f7a37c641877aa44499861db2f","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 3 instead of 4).","created_at":"2015-02-20T15:53:56Z","updated_at":"2015-02-20T15:53:56Z","html_url":"https://github.com/HearthStats/hearthstats/pull/440#discussion_r25078849","pull_request_url":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440","_links":{"self":{"href":"https://api.github.com/repos/HearthStats/hearthstats/pulls/comments/25078849"},"html":{"href":"https://github.com/HearthStats/hearthstats/pull/440#discussion_r25078849"},"pull_request":{"href":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440"}}},"pull_request":{"url":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440","id":29706275,"html_url":"https://github.com/HearthStats/hearthstats/pull/440","diff_url":"https://github.com/HearthStats/hearthstats/pull/440.diff","patch_url":"https://github.com/HearthStats/hearthstats/pull/440.patch","issue_url":"https://api.github.com/repos/HearthStats/hearthstats/issues/440","number":440,"state":"open","locked":false,"title":"Staging","user":{"login":"Meowvw","id":10089883,"avatar_url":"https://avatars.githubusercontent.com/u/10089883?v=3","gravatar_id":"","url":"https://api.github.com/users/Meowvw","html_url":"https://github.com/Meowvw","followers_url":"https://api.github.com/users/Meowvw/followers","following_url":"https://api.github.com/users/Meowvw/following{/other_user}","gists_url":"https://api.github.com/users/Meowvw/gists{/gist_id}","starred_url":"https://api.github.com/users/Meowvw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meowvw/subscriptions","organizations_url":"https://api.github.com/users/Meowvw/orgs","repos_url":"https://api.github.com/users/Meowvw/repos","events_url":"https://api.github.com/users/Meowvw/events{/privacy}","received_events_url":"https://api.github.com/users/Meowvw/received_events","type":"User","site_admin":false},"body":"*new arena run test","created_at":"2015-02-20T15:53:51Z","updated_at":"2015-02-20T15:53:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d79522fee97b1483ec36dc69db6073c2dd8daf69","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440/commits","review_comments_url":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440/comments","review_comment_url":"https://api.github.com/repos/HearthStats/hearthstats/pulls/comments/{number}","comments_url":"https://api.github.com/repos/HearthStats/hearthstats/issues/440/comments","statuses_url":"https://api.github.com/repos/HearthStats/hearthstats/statuses/df7ea2689d6239f7a37c641877aa44499861db2f","head":{"label":"Meowvw:staging","ref":"staging","sha":"df7ea2689d6239f7a37c641877aa44499861db2f","user":{"login":"Meowvw","id":10089883,"avatar_url":"https://avatars.githubusercontent.com/u/10089883?v=3","gravatar_id":"","url":"https://api.github.com/users/Meowvw","html_url":"https://github.com/Meowvw","followers_url":"https://api.github.com/users/Meowvw/followers","following_url":"https://api.github.com/users/Meowvw/following{/other_user}","gists_url":"https://api.github.com/users/Meowvw/gists{/gist_id}","starred_url":"https://api.github.com/users/Meowvw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meowvw/subscriptions","organizations_url":"https://api.github.com/users/Meowvw/orgs","repos_url":"https://api.github.com/users/Meowvw/repos","events_url":"https://api.github.com/users/Meowvw/events{/privacy}","received_events_url":"https://api.github.com/users/Meowvw/received_events","type":"User","site_admin":false},"repo":{"id":28816534,"name":"hearthstats","full_name":"Meowvw/hearthstats","owner":{"login":"Meowvw","id":10089883,"avatar_url":"https://avatars.githubusercontent.com/u/10089883?v=3","gravatar_id":"","url":"https://api.github.com/users/Meowvw","html_url":"https://github.com/Meowvw","followers_url":"https://api.github.com/users/Meowvw/followers","following_url":"https://api.github.com/users/Meowvw/following{/other_user}","gists_url":"https://api.github.com/users/Meowvw/gists{/gist_id}","starred_url":"https://api.github.com/users/Meowvw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meowvw/subscriptions","organizations_url":"https://api.github.com/users/Meowvw/orgs","repos_url":"https://api.github.com/users/Meowvw/repos","events_url":"https://api.github.com/users/Meowvw/events{/privacy}","received_events_url":"https://api.github.com/users/Meowvw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Meowvw/hearthstats","description":"Details Hearthstone match statistics and tracking.","fork":true,"url":"https://api.github.com/repos/Meowvw/hearthstats","forks_url":"https://api.github.com/repos/Meowvw/hearthstats/forks","keys_url":"https://api.github.com/repos/Meowvw/hearthstats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Meowvw/hearthstats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Meowvw/hearthstats/teams","hooks_url":"https://api.github.com/repos/Meowvw/hearthstats/hooks","issue_events_url":"https://api.github.com/repos/Meowvw/hearthstats/issues/events{/number}","events_url":"https://api.github.com/repos/Meowvw/hearthstats/events","assignees_url":"https://api.github.com/repos/Meowvw/hearthstats/assignees{/user}","branches_url":"https://api.github.com/repos/Meowvw/hearthstats/branches{/branch}","tags_url":"https://api.github.com/repos/Meowvw/hearthstats/tags","blobs_url":"https://api.github.com/repos/Meowvw/hearthstats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Meowvw/hearthstats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Meowvw/hearthstats/git/refs{/sha}","trees_url":"https://api.github.com/repos/Meowvw/hearthstats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Meowvw/hearthstats/statuses/{sha}","languages_url":"https://api.github.com/repos/Meowvw/hearthstats/languages","stargazers_url":"https://api.github.com/repos/Meowvw/hearthstats/stargazers","contributors_url":"https://api.github.com/repos/Meowvw/hearthstats/contributors","subscribers_url":"https://api.github.com/repos/Meowvw/hearthstats/subscribers","subscription_url":"https://api.github.com/repos/Meowvw/hearthstats/subscription","commits_url":"https://api.github.com/repos/Meowvw/hearthstats/commits{/sha}","git_commits_url":"https://api.github.com/repos/Meowvw/hearthstats/git/commits{/sha}","comments_url":"https://api.github.com/repos/Meowvw/hearthstats/comments{/number}","issue_comment_url":"https://api.github.com/repos/Meowvw/hearthstats/issues/comments/{number}","contents_url":"https://api.github.com/repos/Meowvw/hearthstats/contents/{+path}","compare_url":"https://api.github.com/repos/Meowvw/hearthstats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Meowvw/hearthstats/merges","archive_url":"https://api.github.com/repos/Meowvw/hearthstats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Meowvw/hearthstats/downloads","issues_url":"https://api.github.com/repos/Meowvw/hearthstats/issues{/number}","pulls_url":"https://api.github.com/repos/Meowvw/hearthstats/pulls{/number}","milestones_url":"https://api.github.com/repos/Meowvw/hearthstats/milestones{/number}","notifications_url":"https://api.github.com/repos/Meowvw/hearthstats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Meowvw/hearthstats/labels{/name}","releases_url":"https://api.github.com/repos/Meowvw/hearthstats/releases{/id}","created_at":"2015-01-05T14:46:00Z","updated_at":"2015-02-10T22:15:52Z","pushed_at":"2015-02-20T15:52:47Z","git_url":"git://github.com/Meowvw/hearthstats.git","ssh_url":"git@github.com:Meowvw/hearthstats.git","clone_url":"https://github.com/Meowvw/hearthstats.git","svn_url":"https://github.com/Meowvw/hearthstats","homepage":"hearthstats.net","size":159118,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"HearthStats:staging","ref":"staging","sha":"ff8f589f334627318822a1719e42e84e836e782f","user":{"login":"HearthStats","id":6345817,"avatar_url":"https://avatars.githubusercontent.com/u/6345817?v=3","gravatar_id":"","url":"https://api.github.com/users/HearthStats","html_url":"https://github.com/HearthStats","followers_url":"https://api.github.com/users/HearthStats/followers","following_url":"https://api.github.com/users/HearthStats/following{/other_user}","gists_url":"https://api.github.com/users/HearthStats/gists{/gist_id}","starred_url":"https://api.github.com/users/HearthStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HearthStats/subscriptions","organizations_url":"https://api.github.com/users/HearthStats/orgs","repos_url":"https://api.github.com/users/HearthStats/repos","events_url":"https://api.github.com/users/HearthStats/events{/privacy}","received_events_url":"https://api.github.com/users/HearthStats/received_events","type":"Organization","site_admin":false},"repo":{"id":14030245,"name":"hearthstats","full_name":"HearthStats/hearthstats","owner":{"login":"HearthStats","id":6345817,"avatar_url":"https://avatars.githubusercontent.com/u/6345817?v=3","gravatar_id":"","url":"https://api.github.com/users/HearthStats","html_url":"https://github.com/HearthStats","followers_url":"https://api.github.com/users/HearthStats/followers","following_url":"https://api.github.com/users/HearthStats/following{/other_user}","gists_url":"https://api.github.com/users/HearthStats/gists{/gist_id}","starred_url":"https://api.github.com/users/HearthStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HearthStats/subscriptions","organizations_url":"https://api.github.com/users/HearthStats/orgs","repos_url":"https://api.github.com/users/HearthStats/repos","events_url":"https://api.github.com/users/HearthStats/events{/privacy}","received_events_url":"https://api.github.com/users/HearthStats/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HearthStats/hearthstats","description":"Details Hearthstone match statistics and tracking.","fork":false,"url":"https://api.github.com/repos/HearthStats/hearthstats","forks_url":"https://api.github.com/repos/HearthStats/hearthstats/forks","keys_url":"https://api.github.com/repos/HearthStats/hearthstats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HearthStats/hearthstats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HearthStats/hearthstats/teams","hooks_url":"https://api.github.com/repos/HearthStats/hearthstats/hooks","issue_events_url":"https://api.github.com/repos/HearthStats/hearthstats/issues/events{/number}","events_url":"https://api.github.com/repos/HearthStats/hearthstats/events","assignees_url":"https://api.github.com/repos/HearthStats/hearthstats/assignees{/user}","branches_url":"https://api.github.com/repos/HearthStats/hearthstats/branches{/branch}","tags_url":"https://api.github.com/repos/HearthStats/hearthstats/tags","blobs_url":"https://api.github.com/repos/HearthStats/hearthstats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HearthStats/hearthstats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HearthStats/hearthstats/git/refs{/sha}","trees_url":"https://api.github.com/repos/HearthStats/hearthstats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HearthStats/hearthstats/statuses/{sha}","languages_url":"https://api.github.com/repos/HearthStats/hearthstats/languages","stargazers_url":"https://api.github.com/repos/HearthStats/hearthstats/stargazers","contributors_url":"https://api.github.com/repos/HearthStats/hearthstats/contributors","subscribers_url":"https://api.github.com/repos/HearthStats/hearthstats/subscribers","subscription_url":"https://api.github.com/repos/HearthStats/hearthstats/subscription","commits_url":"https://api.github.com/repos/HearthStats/hearthstats/commits{/sha}","git_commits_url":"https://api.github.com/repos/HearthStats/hearthstats/git/commits{/sha}","comments_url":"https://api.github.com/repos/HearthStats/hearthstats/comments{/number}","issue_comment_url":"https://api.github.com/repos/HearthStats/hearthstats/issues/comments/{number}","contents_url":"https://api.github.com/repos/HearthStats/hearthstats/contents/{+path}","compare_url":"https://api.github.com/repos/HearthStats/hearthstats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HearthStats/hearthstats/merges","archive_url":"https://api.github.com/repos/HearthStats/hearthstats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HearthStats/hearthstats/downloads","issues_url":"https://api.github.com/repos/HearthStats/hearthstats/issues{/number}","pulls_url":"https://api.github.com/repos/HearthStats/hearthstats/pulls{/number}","milestones_url":"https://api.github.com/repos/HearthStats/hearthstats/milestones{/number}","notifications_url":"https://api.github.com/repos/HearthStats/hearthstats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HearthStats/hearthstats/labels{/name}","releases_url":"https://api.github.com/repos/HearthStats/hearthstats/releases{/id}","created_at":"2013-10-31T22:49:01Z","updated_at":"2015-02-13T19:23:29Z","pushed_at":"2015-02-13T19:23:29Z","git_url":"git://github.com/HearthStats/hearthstats.git","ssh_url":"git@github.com:HearthStats/hearthstats.git","clone_url":"https://github.com/HearthStats/hearthstats.git","svn_url":"https://github.com/HearthStats/hearthstats","homepage":"hearthstats.net","size":169728,"stargazers_count":60,"watchers_count":60,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":8,"forks":47,"open_issues":8,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440"},"html":{"href":"https://github.com/HearthStats/hearthstats/pull/440"},"issue":{"href":"https://api.github.com/repos/HearthStats/hearthstats/issues/440"},"comments":{"href":"https://api.github.com/repos/HearthStats/hearthstats/issues/440/comments"},"review_comments":{"href":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440/comments"},"review_comment":{"href":"https://api.github.com/repos/HearthStats/hearthstats/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/HearthStats/hearthstats/pulls/440/commits"},"statuses":{"href":"https://api.github.com/repos/HearthStats/hearthstats/statuses/df7ea2689d6239f7a37c641877aa44499861db2f"}}}}