{"action":"created","issue":{"url":"https://api.github.com/repos/ntl/test-bench/issues/9","repository_url":"https://api.github.com/repos/ntl/test-bench","labels_url":"https://api.github.com/repos/ntl/test-bench/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ntl/test-bench/issues/9/comments","events_url":"https://api.github.com/repos/ntl/test-bench/issues/9/events","html_url":"https://github.com/ntl/test-bench/issues/9","id":171208199,"number":9,"title":"[Proposal] Allow a user provided initializer to be loaded on `TestBench.activate`","user":{"login":"chrisnicola","id":156449,"avatar_url":"https://avatars.githubusercontent.com/u/156449?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisnicola","html_url":"https://github.com/chrisnicola","followers_url":"https://api.github.com/users/chrisnicola/followers","following_url":"https://api.github.com/users/chrisnicola/following{/other_user}","gists_url":"https://api.github.com/users/chrisnicola/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisnicola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisnicola/subscriptions","organizations_url":"https://api.github.com/users/chrisnicola/orgs","repos_url":"https://api.github.com/users/chrisnicola/repos","events_url":"https://api.github.com/users/chrisnicola/events{/privacy}","received_events_url":"https://api.github.com/users/chrisnicola/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-15T16:35:11Z","updated_at":"2016-08-15T19:04:54Z","closed_at":null,"body":"In order to provide a convenient way for extensions to work or for users to customize TestBench's behaviour locally, it would be helpful to automatically load an initializer if available in the path.\r\n\r\nI'm proposing this as an alternative to the changes in #8 so that those changes can exist as a separate extension module. However there is currently no obvious way to extend TestBench at activations.\r\n\r\nI think an initializer is probably the most straightforward way to accomplish this. Extension module could then simply be required in that initializer if a user wishes to active that extensions behaviour.\r\n\r\nI'm opening this for discussion but I will happily submit a pull request as well."},"comment":{"url":"https://api.github.com/repos/ntl/test-bench/issues/comments/239896529","html_url":"https://github.com/ntl/test-bench/issues/9#issuecomment-239896529","issue_url":"https://api.github.com/repos/ntl/test-bench/issues/9","id":239896529,"user":{"login":"ntl","id":31915,"avatar_url":"https://avatars.githubusercontent.com/u/31915?v=3","gravatar_id":"","url":"https://api.github.com/users/ntl","html_url":"https://github.com/ntl","followers_url":"https://api.github.com/users/ntl/followers","following_url":"https://api.github.com/users/ntl/following{/other_user}","gists_url":"https://api.github.com/users/ntl/gists{/gist_id}","starred_url":"https://api.github.com/users/ntl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntl/subscriptions","organizations_url":"https://api.github.com/users/ntl/orgs","repos_url":"https://api.github.com/users/ntl/repos","events_url":"https://api.github.com/users/ntl/events{/privacy}","received_events_url":"https://api.github.com/users/ntl/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T19:04:54Z","updated_at":"2016-08-15T19:04:54Z","body":"What about just loading test bench, then the plugin, then activating test bench? For instance, in a test helper, `test/test_helper.rb`\r\n\r\n```ruby\r\nrequire 'my/library'\r\n\r\nrequire 'test_bench'\r\nrequire 'test_bench/some_plugin'\r\nTestBench.activate\r\n```"}}
{"actor":{"display_login":"ntl"}}