{"action":"created","issue":{"url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/issues/377","labels_url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/issues/377/comments","events_url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/issues/377/events","html_url":"https://github.com/DatabaseCleaner/database_cleaner/pull/377","id":94984474,"number":377,"title":"Link to configuration from rspec-rails-examples","user":{"login":"eliotsykes","id":31698,"avatar_url":"https://avatars.githubusercontent.com/u/31698?v=3","gravatar_id":"","url":"https://api.github.com/users/eliotsykes","html_url":"https://github.com/eliotsykes","followers_url":"https://api.github.com/users/eliotsykes/followers","following_url":"https://api.github.com/users/eliotsykes/following{/other_user}","gists_url":"https://api.github.com/users/eliotsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/eliotsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliotsykes/subscriptions","organizations_url":"https://api.github.com/users/eliotsykes/orgs","repos_url":"https://api.github.com/users/eliotsykes/repos","events_url":"https://api.github.com/users/eliotsykes/events{/privacy}","received_events_url":"https://api.github.com/users/eliotsykes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/labels/doc","name":"doc","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"etagwerker","id":17584,"avatar_url":"https://avatars.githubusercontent.com/u/17584?v=3","gravatar_id":"","url":"https://api.github.com/users/etagwerker","html_url":"https://github.com/etagwerker","followers_url":"https://api.github.com/users/etagwerker/followers","following_url":"https://api.github.com/users/etagwerker/following{/other_user}","gists_url":"https://api.github.com/users/etagwerker/gists{/gist_id}","starred_url":"https://api.github.com/users/etagwerker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etagwerker/subscriptions","organizations_url":"https://api.github.com/users/etagwerker/orgs","repos_url":"https://api.github.com/users/etagwerker/repos","events_url":"https://api.github.com/users/etagwerker/events{/privacy}","received_events_url":"https://api.github.com/users/etagwerker/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-14T16:31:06Z","updated_at":"2015-12-24T17:48:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/pulls/377","html_url":"https://github.com/DatabaseCleaner/database_cleaner/pull/377","diff_url":"https://github.com/DatabaseCleaner/database_cleaner/pull/377.diff","patch_url":"https://github.com/DatabaseCleaner/database_cleaner/pull/377.patch"},"body":"The configuration at https://github.com/eliotsykes/rspec-rails-examples/blob/master/spec/support/database_cleaner.rb is a tad more robust in 2 ways:\r\n\r\n- It checks the Capybara driver isn't rack_test - this is the more reliable check. Using the `js: true` flag is only one of the ways in which a driver can be set. For example the `:driver` metadata option is an alternative way of setting the capybara driver.\r\n- Setting `config.use_transactional_fixtures = false` in the database cleaner configuration is not always enough alone. If the config is still set in `rails_helper.rb` to `config.use_transactional_fixtures = true`, that can take precedence. The linked to configuration raises an error if this error is detected.\r\n\r\nAlternatively I can submit a PR with the entire config in the README - though its quite a long config and felt a bit presumptive!"},"comment":{"url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/issues/comments/167141276","html_url":"https://github.com/DatabaseCleaner/database_cleaner/pull/377#issuecomment-167141276","issue_url":"https://api.github.com/repos/DatabaseCleaner/database_cleaner/issues/377","id":167141276,"user":{"login":"eliotsykes","id":31698,"avatar_url":"https://avatars.githubusercontent.com/u/31698?v=3","gravatar_id":"","url":"https://api.github.com/users/eliotsykes","html_url":"https://github.com/eliotsykes","followers_url":"https://api.github.com/users/eliotsykes/followers","following_url":"https://api.github.com/users/eliotsykes/following{/other_user}","gists_url":"https://api.github.com/users/eliotsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/eliotsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliotsykes/subscriptions","organizations_url":"https://api.github.com/users/eliotsykes/orgs","repos_url":"https://api.github.com/users/eliotsykes/repos","events_url":"https://api.github.com/users/eliotsykes/events{/privacy}","received_events_url":"https://api.github.com/users/eliotsykes/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T17:48:56Z","updated_at":"2015-12-24T17:48:56Z","body":"Sounds good and thanks @etagwerker. Both links above point to lines 18-44, were 2 separate snippets of the sample intended?"}}