{"action":"created","issue":{"url":"https://api.github.com/repos/lotus/lotus/issues/187","labels_url":"https://api.github.com/repos/lotus/lotus/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/lotus/lotus/issues/187/comments","events_url":"https://api.github.com/repos/lotus/lotus/issues/187/events","html_url":"https://github.com/lotus/lotus/issues/187","id":64033554,"number":187,"title":"Loading routes for testing","user":{"login":"danelowe","id":924802,"avatar_url":"https://avatars.githubusercontent.com/u/924802?v=3","gravatar_id":"","url":"https://api.github.com/users/danelowe","html_url":"https://github.com/danelowe","followers_url":"https://api.github.com/users/danelowe/followers","following_url":"https://api.github.com/users/danelowe/following{/other_user}","gists_url":"https://api.github.com/users/danelowe/gists{/gist_id}","starred_url":"https://api.github.com/users/danelowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danelowe/subscriptions","organizations_url":"https://api.github.com/users/danelowe/orgs","repos_url":"https://api.github.com/users/danelowe/repos","events_url":"https://api.github.com/users/danelowe/events{/privacy}","received_events_url":"https://api.github.com/users/danelowe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lotus/lotus/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-24T15:57:47Z","updated_at":"2015-03-24T16:28:25Z","closed_at":null,"body":"One of my views uses the routes helper, e.g.\r\n\r\n```ruby\r\nroutes.path(:quotes, id: quote.type)\r\n```\r\n\r\nThe helper relies on a namespaced Routes module being available, e.g.\r\n\r\n```ruby \r\nWeb::Routes\r\n```\r\n\r\nThis module is never created by ```Lotus::Loader``` unless the application is being loaded as an instance rather than a class. \r\n\r\nTo prevent my tests from having errors, I had to change the line in my test_helper.rb from the default\r\n\r\n```ruby\r\nLotus::Application.preload!\r\n```\r\n\r\nto \r\n\r\n```ruby\r\nLotus::Application.preload_applications!\r\n```\r\n\r\nI'm not entirely sure what the difference between these is, and whether it will have an impact on testing performance, or if there is an easier way to prevent the routes helper breaking tests? "},"comment":{"url":"https://api.github.com/repos/lotus/lotus/issues/comments/85589301","html_url":"https://github.com/lotus/lotus/issues/187#issuecomment-85589301","issue_url":"https://api.github.com/repos/lotus/lotus/issues/187","id":85589301,"user":{"login":"AlfonsoUceda","id":925961,"avatar_url":"https://avatars.githubusercontent.com/u/925961?v=3","gravatar_id":"","url":"https://api.github.com/users/AlfonsoUceda","html_url":"https://github.com/AlfonsoUceda","followers_url":"https://api.github.com/users/AlfonsoUceda/followers","following_url":"https://api.github.com/users/AlfonsoUceda/following{/other_user}","gists_url":"https://api.github.com/users/AlfonsoUceda/gists{/gist_id}","starred_url":"https://api.github.com/users/AlfonsoUceda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlfonsoUceda/subscriptions","organizations_url":"https://api.github.com/users/AlfonsoUceda/orgs","repos_url":"https://api.github.com/users/AlfonsoUceda/repos","events_url":"https://api.github.com/users/AlfonsoUceda/events{/privacy}","received_events_url":"https://api.github.com/users/AlfonsoUceda/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T16:28:25Z","updated_at":"2015-03-24T16:28:25Z","body":"There is a PR fixing that: #180 "}}