{"action":"created","comment":{"url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments/47360881","id":47360881,"diff_hunk":"@@ -1,50 +1,39 @@\n-# This file is copied to spec/ when you run 'rails generate rspec:install'\n-ENV['RAILS_ENV'] ||= 'test'\n-require File.expand_path('../../config/environment', __FILE__)\n+# This file is copied to spec/ when you run \"rails generate rspec:install\"\n+ENV[\"RAILS_ENV\"] ||= \"test\"\n+require File.expand_path(\"../../config/environment\", __FILE__)\n # Prevent database truncation if the environment is production\n abort(\"The Rails environment is running in production mode!\") if Rails.env.production?\n-require 'spec_helper'\n-require 'rspec/rails'\n-require 'simplecov'\n-SimpleCov.start 'rails'\n-# Add additional requires below this line. Rails is not loaded until this point!\n+require \"spec_helper\"\n+require \"rspec/rails\"\n+require \"capybara/rspec\"\n+require \"capybara/rails\"\n+require \"capybara/poltergeist\"\n+require \"capybara-screenshot\"\n+require \"capybara-screenshot/rspec\"\n+require \"simplecov\"\n+SimpleCov.start \"rails\"\n \n-# Requires supporting ruby files with custom matchers and macros, etc, in\n-# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are\n-# run as spec files by default. This means that files in spec/support that end\n-# in _spec.rb will both be required and run as specs, causing the specs to be\n-# run twice. It is recommended that you do not name files matching this glob to\n-# end with _spec.rb. You can configure this pattern with the --pattern\n-# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.\n-#\n-# The following line is provided for convenience purposes. It has the downside\n-# of increasing the boot-up time by auto-requiring all files in the support\n-# directory. Alternatively, in the individual `*_spec.rb` files, manually\n-# require only the support files necessary.\n-\n-Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }\n+Dir[Rails.root.join(\"spec/support/**/*.rb\")].each { |f| require f }\n \n RSpec.configure do |config|\n-  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures\n   config.fixture_path = \"#{::Rails.root}/spec/fixtures\"\n \n-  # RSpec Rails can automatically mix in different behaviours to your tests\n-  # based on their file location, for example enabling you to call `get` and\n-  # `post` in specs under `spec/controllers`.\n-  #\n-  # You can disable this behaviour by removing the line below, and instead\n-  # explicitly tag your specs with their type, e.g.:\n-  #\n-  #     RSpec.describe UsersController, :type => :controller do\n-  #       # ...\n-  #     end\n-  #\n-  # The different available types are documented in the features, such as in\n-  # https://relishapp.com/rspec/rspec-rails/docs\n-  config.infer_spec_type_from_file_location!\n+  Capybara.register_driver :poltergeist do |app|\n+    Capybara::Poltergeist::Driver.new(app,\n+                                      js_errors: false,\n+                                      phantomjs_options: [\"--proxy-type=none\"],\n+                                      timeout: 180,\n+                                      :phantomjs_logger => File.open(\"#{Rails.root}/log/test_phantomjs.log\", \"a\"),","path":"spec/rails_helper.rb","position":63,"original_position":63,"commit_id":"7089d0cc1a7456d72b05a0d54d9d11d9474a94b8","original_commit_id":"7089d0cc1a7456d72b05a0d54d9d11d9474a94b8","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":"Line is too long. [114/80]<br>Use the new Ruby 1.9 hash syntax.","created_at":"2015-12-11T14:40:04Z","updated_at":"2015-12-11T14:40:04Z","html_url":"https://github.com/BastienBabar/tictactoe/pull/4#discussion_r47360881","pull_request_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments/47360881"},"html":{"href":"https://github.com/BastienBabar/tictactoe/pull/4#discussion_r47360881"},"pull_request":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4","id":53399043,"html_url":"https://github.com/BastienBabar/tictactoe/pull/4","diff_url":"https://github.com/BastienBabar/tictactoe/pull/4.diff","patch_url":"https://github.com/BastienBabar/tictactoe/pull/4.patch","issue_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/4","number":4,"state":"open","locked":false,"title":"clean up and tests","user":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-11T14:33:37Z","updated_at":"2015-12-11T14:40:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47ce61e7f8003210a505fbc49f19831add087aed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4/commits","review_comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4/comments","review_comment_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/4/comments","statuses_url":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/7089d0cc1a7456d72b05a0d54d9d11d9474a94b8","head":{"label":"BastienBabar:tests","ref":"tests","sha":"7089d0cc1a7456d72b05a0d54d9d11d9474a94b8","user":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"repo":{"id":47369855,"name":"tictactoe","full_name":"BastienBabar/tictactoe","owner":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BastienBabar/tictactoe","description":"Simple tictactoe game","fork":false,"url":"https://api.github.com/repos/BastienBabar/tictactoe","forks_url":"https://api.github.com/repos/BastienBabar/tictactoe/forks","keys_url":"https://api.github.com/repos/BastienBabar/tictactoe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BastienBabar/tictactoe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BastienBabar/tictactoe/teams","hooks_url":"https://api.github.com/repos/BastienBabar/tictactoe/hooks","issue_events_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/events{/number}","events_url":"https://api.github.com/repos/BastienBabar/tictactoe/events","assignees_url":"https://api.github.com/repos/BastienBabar/tictactoe/assignees{/user}","branches_url":"https://api.github.com/repos/BastienBabar/tictactoe/branches{/branch}","tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/tags","blobs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/refs{/sha}","trees_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/{sha}","languages_url":"https://api.github.com/repos/BastienBabar/tictactoe/languages","stargazers_url":"https://api.github.com/repos/BastienBabar/tictactoe/stargazers","contributors_url":"https://api.github.com/repos/BastienBabar/tictactoe/contributors","subscribers_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscribers","subscription_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscription","commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/commits{/sha}","git_commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/commits{/sha}","comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/comments{/number}","issue_comment_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/comments{/number}","contents_url":"https://api.github.com/repos/BastienBabar/tictactoe/contents/{+path}","compare_url":"https://api.github.com/repos/BastienBabar/tictactoe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BastienBabar/tictactoe/merges","archive_url":"https://api.github.com/repos/BastienBabar/tictactoe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BastienBabar/tictactoe/downloads","issues_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues{/number}","pulls_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls{/number}","milestones_url":"https://api.github.com/repos/BastienBabar/tictactoe/milestones{/number}","notifications_url":"https://api.github.com/repos/BastienBabar/tictactoe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BastienBabar/tictactoe/labels{/name}","releases_url":"https://api.github.com/repos/BastienBabar/tictactoe/releases{/id}","created_at":"2015-12-04T00:24:51Z","updated_at":"2015-12-06T13:28:08Z","pushed_at":"2015-12-11T14:39:59Z","git_url":"git://github.com/BastienBabar/tictactoe.git","ssh_url":"git@github.com:BastienBabar/tictactoe.git","clone_url":"https://github.com/BastienBabar/tictactoe.git","svn_url":"https://github.com/BastienBabar/tictactoe","homepage":null,"size":49,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"BastienBabar:master","ref":"master","sha":"ac8669e9cb809c1f28456b4a00cdef9cdf64c719","user":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"repo":{"id":47369855,"name":"tictactoe","full_name":"BastienBabar/tictactoe","owner":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BastienBabar/tictactoe","description":"Simple tictactoe game","fork":false,"url":"https://api.github.com/repos/BastienBabar/tictactoe","forks_url":"https://api.github.com/repos/BastienBabar/tictactoe/forks","keys_url":"https://api.github.com/repos/BastienBabar/tictactoe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BastienBabar/tictactoe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BastienBabar/tictactoe/teams","hooks_url":"https://api.github.com/repos/BastienBabar/tictactoe/hooks","issue_events_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/events{/number}","events_url":"https://api.github.com/repos/BastienBabar/tictactoe/events","assignees_url":"https://api.github.com/repos/BastienBabar/tictactoe/assignees{/user}","branches_url":"https://api.github.com/repos/BastienBabar/tictactoe/branches{/branch}","tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/tags","blobs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/refs{/sha}","trees_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/{sha}","languages_url":"https://api.github.com/repos/BastienBabar/tictactoe/languages","stargazers_url":"https://api.github.com/repos/BastienBabar/tictactoe/stargazers","contributors_url":"https://api.github.com/repos/BastienBabar/tictactoe/contributors","subscribers_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscribers","subscription_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscription","commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/commits{/sha}","git_commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/commits{/sha}","comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/comments{/number}","issue_comment_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/comments{/number}","contents_url":"https://api.github.com/repos/BastienBabar/tictactoe/contents/{+path}","compare_url":"https://api.github.com/repos/BastienBabar/tictactoe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BastienBabar/tictactoe/merges","archive_url":"https://api.github.com/repos/BastienBabar/tictactoe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BastienBabar/tictactoe/downloads","issues_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues{/number}","pulls_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls{/number}","milestones_url":"https://api.github.com/repos/BastienBabar/tictactoe/milestones{/number}","notifications_url":"https://api.github.com/repos/BastienBabar/tictactoe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BastienBabar/tictactoe/labels{/name}","releases_url":"https://api.github.com/repos/BastienBabar/tictactoe/releases{/id}","created_at":"2015-12-04T00:24:51Z","updated_at":"2015-12-06T13:28:08Z","pushed_at":"2015-12-11T14:39:59Z","git_url":"git://github.com/BastienBabar/tictactoe.git","ssh_url":"git@github.com:BastienBabar/tictactoe.git","clone_url":"https://github.com/BastienBabar/tictactoe.git","svn_url":"https://github.com/BastienBabar/tictactoe","homepage":null,"size":49,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4"},"html":{"href":"https://github.com/BastienBabar/tictactoe/pull/4"},"issue":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/issues/4"},"comments":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/7089d0cc1a7456d72b05a0d54d9d11d9474a94b8"}}}}