{"action":"created","issue":{"url":"https://api.github.com/repos/sul-dlss/spotlight/issues/1270","labels_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/1270/comments","events_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/1270/events","html_url":"https://github.com/sul-dlss/spotlight/issues/1270","id":118729093,"number":1270,"title":"Consider advertising factories in a railtie","user":{"login":"jkeck","id":96776,"avatar_url":"https://avatars.githubusercontent.com/u/96776?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeck","html_url":"https://github.com/jkeck","followers_url":"https://api.github.com/users/jkeck/followers","following_url":"https://api.github.com/users/jkeck/following{/other_user}","gists_url":"https://api.github.com/users/jkeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeck/subscriptions","organizations_url":"https://api.github.com/users/jkeck/orgs","repos_url":"https://api.github.com/users/jkeck/repos","events_url":"https://api.github.com/users/jkeck/events{/privacy}","received_events_url":"https://api.github.com/users/jkeck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T23:54:35Z","updated_at":"2015-11-24T23:54:54Z","closed_at":null,"body":"See the [PR in FactoryGirlRails](https://github.com/thoughtbot/factory_girl_rails/pull/42)\r\n\r\nI *think* we just need to add something along the lines of\r\n\r\n```ruby\r\ninitializer 'spotlight.factories', after: 'factory_girl.set_factory_paths' do\r\n  FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl)\r\nend\r\n```\r\n\r\nin `config/engine.rb` and then apps (and gems I believe) that require Spotlight will have access to the Spotlight defined factories in their tests."},"comment":{"url":"https://api.github.com/repos/sul-dlss/spotlight/issues/comments/159442506","html_url":"https://github.com/sul-dlss/spotlight/issues/1270#issuecomment-159442506","issue_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/1270","id":159442506,"user":{"login":"cbeer","id":111218,"avatar_url":"https://avatars.githubusercontent.com/u/111218?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeer","html_url":"https://github.com/cbeer","followers_url":"https://api.github.com/users/cbeer/followers","following_url":"https://api.github.com/users/cbeer/following{/other_user}","gists_url":"https://api.github.com/users/cbeer/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeer/subscriptions","organizations_url":"https://api.github.com/users/cbeer/orgs","repos_url":"https://api.github.com/users/cbeer/repos","events_url":"https://api.github.com/users/cbeer/events{/privacy}","received_events_url":"https://api.github.com/users/cbeer/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T23:54:54Z","updated_at":"2015-11-24T23:54:54Z","body":":+1: "}}