{"action":"created","comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/32157044","id":32157044,"diff_hunk":"@@ -22,13 +39,41 @@ module.exports = {\n   locals: function(options) {\n     var dasherizedModuleName = stringUtil.dasherize(options.entity.name);\n     var componentPathName = dasherizedModuleName;\n-    if(options.pod && options.path !== 'components' && options.path !== '') {\n+    var testTypeDefinition = \"integration: true\";\n+    var friendlyTestDescription = testInfo.description(options.entity.name, \"Integration\", \"Component\");\n+    var testContent = \"assert.expect(1);\" + EOL + EOL +\n+      \"  // Set any properties with this.set('myProperty', 'value');\" + EOL +\n+      \"  // Handle any actions with this.on('myAction', function(val) { ... });\" + EOL + EOL +\n+      \"  // Provide a template (string or precompiled) for this.render()\" + EOL +\n+      \"  this.render();\" + EOL + EOL +","path":"blueprints/component-test/index.js","position":44,"original_position":44,"commit_id":"995e1a6f2cf8af01fdf5c7ba9a27c45aed36f115","original_commit_id":"995e1a6f2cf8af01fdf5c7ba9a27c45aed36f115","user":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"body":"Can we just get away with adding an empty `'<span></span>'` or something?","created_at":"2015-06-10T19:34:38Z","updated_at":"2015-06-10T19:34:38Z","html_url":"https://github.com/ember-cli/ember-cli/pull/4272#discussion_r32157044","pull_request_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272","_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/32157044"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/4272#discussion_r32157044"},"pull_request":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272"}}},"pull_request":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272","id":37325103,"html_url":"https://github.com/ember-cli/ember-cli/pull/4272","diff_url":"https://github.com/ember-cli/ember-cli/pull/4272.diff","patch_url":"https://github.com/ember-cli/ember-cli/pull/4272.patch","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272","number":4272,"state":"open","locked":false,"title":"[ENHANCEMENT] Generate component-tests into `tests/integration` by default","user":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"body":"resolves #4178\r\nBy default component-tests now generate into `tests/integration`, with a new `--test-type` option allowing you to generate as a unit test intstead. The `--test-type` option can only be `unit` or `integration` and has the aliases `-unit`, `-u`, `-integration`, and `-i`.\r\n```\r\nember g component-test foo-bar -unit\r\n```\r\n\r\nThis PR also adds support for using an array of possible values as a command option type, accepting only the values in the array as valid arguments (essentially an enum type). For example, this is what the option for `test-type` looks like:\r\n\r\n```\r\n  availableOptions: [\r\n    {\r\n      name: 'test-type',\r\n      type: ['integration', 'unit'],\r\n      default: 'integration',\r\n      aliases:[\r\n        { 'i': 'integration'},\r\n        { 'u': 'unit'},\r\n        { 'integration': 'integration' },\r\n        { 'unit': 'unit' }\r\n      ]\r\n    }\r\n  ]\r\n```","created_at":"2015-06-10T05:22:22Z","updated_at":"2015-06-10T19:34:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dee137e844f2238f6397e8a9b97b2802a6a790a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272/commits","review_comments_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272/comments","review_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272/comments","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/995e1a6f2cf8af01fdf5c7ba9a27c45aed36f115","head":{"label":"trabus:component-integration-test","ref":"component-integration-test","sha":"995e1a6f2cf8af01fdf5c7ba9a27c45aed36f115","user":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"repo":{"id":22461052,"name":"ember-cli","full_name":"trabus/ember-cli","owner":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trabus/ember-cli","description":"","fork":true,"url":"https://api.github.com/repos/trabus/ember-cli","forks_url":"https://api.github.com/repos/trabus/ember-cli/forks","keys_url":"https://api.github.com/repos/trabus/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trabus/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trabus/ember-cli/teams","hooks_url":"https://api.github.com/repos/trabus/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/trabus/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/trabus/ember-cli/events","assignees_url":"https://api.github.com/repos/trabus/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/trabus/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/trabus/ember-cli/tags","blobs_url":"https://api.github.com/repos/trabus/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trabus/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trabus/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/trabus/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trabus/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/trabus/ember-cli/languages","stargazers_url":"https://api.github.com/repos/trabus/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/trabus/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/trabus/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/trabus/ember-cli/subscription","commits_url":"https://api.github.com/repos/trabus/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/trabus/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/trabus/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/trabus/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/trabus/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/trabus/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trabus/ember-cli/merges","archive_url":"https://api.github.com/repos/trabus/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trabus/ember-cli/downloads","issues_url":"https://api.github.com/repos/trabus/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/trabus/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/trabus/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/trabus/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trabus/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/trabus/ember-cli/releases{/id}","created_at":"2014-07-31T07:48:56Z","updated_at":"2015-05-04T17:29:15Z","pushed_at":"2015-06-10T18:51:25Z","git_url":"git://github.com/trabus/ember-cli.git","ssh_url":"git@github.com:trabus/ember-cli.git","clone_url":"https://github.com/trabus/ember-cli.git","svn_url":"https://github.com/trabus/ember-cli","homepage":"http:/www.ember-cli.com/","size":8126,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ember-cli:master","ref":"master","sha":"b5159b03c5a09ca363e81484b50a4fb6efd40194","user":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":14089735,"name":"ember-cli","full_name":"ember-cli/ember-cli","owner":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ember-cli/ember-cli","description":"","fork":false,"url":"https://api.github.com/repos/ember-cli/ember-cli","forks_url":"https://api.github.com/repos/ember-cli/ember-cli/forks","keys_url":"https://api.github.com/repos/ember-cli/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ember-cli/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ember-cli/ember-cli/teams","hooks_url":"https://api.github.com/repos/ember-cli/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ember-cli/ember-cli/events","assignees_url":"https://api.github.com/repos/ember-cli/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ember-cli/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ember-cli/ember-cli/tags","blobs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ember-cli/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ember-cli/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ember-cli/ember-cli/languages","stargazers_url":"https://api.github.com/repos/ember-cli/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/ember-cli/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/ember-cli/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/ember-cli/ember-cli/subscription","commits_url":"https://api.github.com/repos/ember-cli/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ember-cli/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ember-cli/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ember-cli/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ember-cli/ember-cli/merges","archive_url":"https://api.github.com/repos/ember-cli/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ember-cli/ember-cli/downloads","issues_url":"https://api.github.com/repos/ember-cli/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ember-cli/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ember-cli/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/ember-cli/ember-cli/releases{/id}","created_at":"2013-11-03T17:34:43Z","updated_at":"2015-06-10T17:58:08Z","pushed_at":"2015-06-10T19:09:15Z","git_url":"git://github.com/ember-cli/ember-cli.git","ssh_url":"git@github.com:ember-cli/ember-cli.git","clone_url":"https://github.com/ember-cli/ember-cli.git","svn_url":"https://github.com/ember-cli/ember-cli","homepage":"http://www.ember-cli.com/","size":26103,"stargazers_count":2269,"watchers_count":2269,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":641,"mirror_url":null,"open_issues_count":224,"forks":641,"open_issues":224,"watchers":2269,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/4272"},"issue":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272"},"comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272/comments"},"review_comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272/comments"},"review_comment":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272/commits"},"statuses":{"href":"https://api.github.com/repos/ember-cli/ember-cli/statuses/995e1a6f2cf8af01fdf5c7ba9a27c45aed36f115"}}}}