{"action":"created","comment":{"url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments/26186065","id":26186065,"diff_hunk":"@@ -1,87 +1,22 @@\n-# This file was generated by the `rails generate rspec:install` command. Conventionally, all\n-# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.\n-# The generated `.rspec` file contains `--require spec_helper` which will cause\n-# this file to always be loaded, without a need to explicitly require it in any\n-# files.\n-#\n-# Given that it is always loaded, you are encouraged to keep this file as\n-# light-weight as possible. Requiring heavyweight dependencies from this file\n-# will add to the boot time of your test suite on EVERY test run, even for an\n-# individual file that may not need all of that loaded. Instead, consider making\n-# a separate helper file that requires the additional dependencies and performs\n-# the additional setup, and require it from the spec files that actually need\n-# it.\n-#\n-# The `.rspec` file also contains a few flags that are not defaults but that\n-# users commonly want.\n-#\n-# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration\n RSpec.configure do |config|\n-  # rspec-expectations config goes here. You can use an alternate\n-  # assertion/expectation library such as wrong or the stdlib/minitest\n-  # assertions if you prefer.\n+\n+  config.before(:each) do\n+    DatabaseCleaner.strategy = :transaction\n+    DatabaseCleaner.clean_with(:truncation)\n+  end\n+\n+  config.around(:each) do |example|\n+    DatabaseCleaner.cleaning do\n+      example.run\n+    end\n+  end\n+\n   config.expect_with :rspec do |expectations|\n-    # This option will default to `true` in RSpec 4. It makes the `description`\n-    # and `failure_message` of custom matchers include text for helper methods\n-    # defined using `chain`, e.g.:\n-    #     be_bigger_than(2).and_smaller_than(4).description\n-    #     # => \"be bigger than 2 and smaller than 4\"\n-    # ...rather than:\n-    #     # => \"be bigger than 2\"\n     expectations.include_chain_clauses_in_custom_matcher_descriptions = true\n   end\n \n-  # rspec-mocks config goes here. You can use an alternate test double\n-  # library (such as bogus or mocha) by changing the `mock_with` option here.\n   config.mock_with :rspec do |mocks|\n-    # Prevents you from mocking or stubbing a method that does not exist on\n-    # a real object. This is generally recommended, and will default to\n-    # `true` in RSpec 4.\n     mocks.verify_partial_doubles = true\n   end\n \n-# The settings below are suggested to provide a good initial experience\n-# with RSpec, but feel free to customize to your heart's content.\n-=begin\n-  # These two settings work together to allow you to limit a spec run\n-  # to individual examples or groups you care about by tagging them with\n-  # `:focus` metadata. When nothing is tagged with `:focus`, all examples\n-  # get run.\n-  config.filter_run :focus\n-  config.run_all_when_everything_filtered = true\n-\n-  # Limits the available syntax to the non-monkey patched syntax that is\n-  # recommended. For more details, see:\n-  #   - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax\n-  #   - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/\n-  #   - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching\n-  config.disable_monkey_patching!\n-\n-  # Many RSpec users commonly either run the entire suite or an individual\n-  # file, and it's useful to allow more verbose output when running an\n-  # individual spec file.\n-  if config.files_to_run.one?\n-    # Use the documentation formatter for detailed output,\n-    # unless a formatter has already been configured\n-    # (e.g. via a command-line flag).\n-    config.default_formatter = 'doc'\n-  end\n-\n-  # Print the 10 slowest examples and example groups at the\n-  # end of the spec run, to help surface which specs are running\n-  # particularly slow.\n-  config.profile_examples = 10\n-\n-  # Run specs in random order to surface order dependencies. If you find an\n-  # order dependency and want to debug it, you can fix the order by providing\n-  # the seed, which is printed after each run.\n-  #     --seed 1234\n-  config.order = :random\n-\n-  # Seed global randomization in this process using the `--seed` CLI option.\n-  # Setting this allows you to use `--seed` to deterministically reproduce\n-  # test failures related to randomization by passing the same `--seed` value\n-  # as the one that triggered the failure.\n-  Kernel.srand config.seed\n-=end\n-end\n+end","path":"spec/spec_helper.rb","position":100,"original_position":100,"commit_id":"96ab003964de4eff25f800f515d5422c63e1463e","original_commit_id":"96ab003964de4eff25f800f515d5422c63e1463e","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":"Final newline missing.","created_at":"2015-03-11T03:09:08Z","updated_at":"2015-03-11T03:09:08Z","html_url":"https://github.com/indiesquidge/dinner_dash/pull/35#discussion_r26186065","pull_request_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments/26186065"},"html":{"href":"https://github.com/indiesquidge/dinner_dash/pull/35#discussion_r26186065"},"pull_request":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35","id":30912416,"html_url":"https://github.com/indiesquidge/dinner_dash/pull/35","diff_url":"https://github.com/indiesquidge/dinner_dash/pull/35.diff","patch_url":"https://github.com/indiesquidge/dinner_dash/pull/35.patch","issue_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/35","number":35,"state":"open","locked":false,"title":"Database cleaner","user":{"login":"teresafinn","id":1903069,"avatar_url":"https://avatars.githubusercontent.com/u/1903069?v=3","gravatar_id":"","url":"https://api.github.com/users/teresafinn","html_url":"https://github.com/teresafinn","followers_url":"https://api.github.com/users/teresafinn/followers","following_url":"https://api.github.com/users/teresafinn/following{/other_user}","gists_url":"https://api.github.com/users/teresafinn/gists{/gist_id}","starred_url":"https://api.github.com/users/teresafinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teresafinn/subscriptions","organizations_url":"https://api.github.com/users/teresafinn/orgs","repos_url":"https://api.github.com/users/teresafinn/repos","events_url":"https://api.github.com/users/teresafinn/events{/privacy}","received_events_url":"https://api.github.com/users/teresafinn/received_events","type":"User","site_admin":false},"body":"Implemented database_cleaner and deleted extraneous code","created_at":"2015-03-11T03:09:05Z","updated_at":"2015-03-11T03:09:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d73486b3af106380f6e3921af64c5e21e35dfd0b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35/commits","review_comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35/comments","review_comment_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/35/comments","statuses_url":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/96ab003964de4eff25f800f515d5422c63e1463e","head":{"label":"indiesquidge:database_cleaner","ref":"database_cleaner","sha":"96ab003964de4eff25f800f515d5422c63e1463e","user":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"repo":{"id":31906362,"name":"dinner_dash","full_name":"indiesquidge/dinner_dash","owner":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indiesquidge/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/indiesquidge/dinner_dash","forks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/forks","keys_url":"https://api.github.com/repos/indiesquidge/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indiesquidge/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indiesquidge/dinner_dash/teams","hooks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/events","assignees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/indiesquidge/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/tags","blobs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/indiesquidge/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscription","commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/indiesquidge/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indiesquidge/dinner_dash/merges","archive_url":"https://api.github.com/repos/indiesquidge/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indiesquidge/dinner_dash/downloads","issues_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/indiesquidge/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/indiesquidge/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indiesquidge/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/indiesquidge/dinner_dash/releases{/id}","created_at":"2015-03-09T15:29:10Z","updated_at":"2015-03-10T22:29:50Z","pushed_at":"2015-03-11T03:05:56Z","git_url":"git://github.com/indiesquidge/dinner_dash.git","ssh_url":"git@github.com:indiesquidge/dinner_dash.git","clone_url":"https://github.com/indiesquidge/dinner_dash.git","svn_url":"https://github.com/indiesquidge/dinner_dash","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":34,"forks":0,"open_issues":34,"watchers":0,"default_branch":"master"}},"base":{"label":"indiesquidge:master","ref":"master","sha":"fa4d8ef661c6c2f0cc4adc166b36d4663cf873b0","user":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"repo":{"id":31906362,"name":"dinner_dash","full_name":"indiesquidge/dinner_dash","owner":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indiesquidge/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/indiesquidge/dinner_dash","forks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/forks","keys_url":"https://api.github.com/repos/indiesquidge/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indiesquidge/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indiesquidge/dinner_dash/teams","hooks_url":"https://api.github.com/repos/indiesquidge/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/indiesquidge/dinner_dash/events","assignees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/indiesquidge/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/tags","blobs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/indiesquidge/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/indiesquidge/dinner_dash/subscription","commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/indiesquidge/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/indiesquidge/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/indiesquidge/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/indiesquidge/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indiesquidge/dinner_dash/merges","archive_url":"https://api.github.com/repos/indiesquidge/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indiesquidge/dinner_dash/downloads","issues_url":"https://api.github.com/repos/indiesquidge/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/indiesquidge/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/indiesquidge/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indiesquidge/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/indiesquidge/dinner_dash/releases{/id}","created_at":"2015-03-09T15:29:10Z","updated_at":"2015-03-10T22:29:50Z","pushed_at":"2015-03-11T03:05:56Z","git_url":"git://github.com/indiesquidge/dinner_dash.git","ssh_url":"git@github.com:indiesquidge/dinner_dash.git","clone_url":"https://github.com/indiesquidge/dinner_dash.git","svn_url":"https://github.com/indiesquidge/dinner_dash","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":34,"forks":0,"open_issues":34,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35"},"html":{"href":"https://github.com/indiesquidge/dinner_dash/pull/35"},"issue":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/35"},"comments":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/indiesquidge/dinner_dash/statuses/96ab003964de4eff25f800f515d5422c63e1463e"}}}}