{"action":"created","comment":{"url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments/37894491","id":37894491,"diff_hunk":"@@ -0,0 +1,165 @@\n+import { moduleForComponent, test } from 'ember-qunit';\n+import hbs from 'htmlbars-inline-precompile';\n+\n+moduleForComponent( 'sl-radio-group', 'Integration | Component | sl radio group', {\n+    integration: true\n+});\n+\n+test( 'The disabled state applies the disabled attribute and class', function( assert ) {\n+    this.set( 'testName', 'test' );\n+    this.render( hbs`\n+        {{#sl-radio-group disabled=true name='testName'}}\n+        {{/sl-radio-group}}\n+    ` );\n+\n+    assert.equal(\n+        this.$( '.sl-radio-group' ).attr( 'disabled' ),\n+        'disabled',\n+        'has \"disabled\" attribute'\n+    );\n+\n+    assert.ok(\n+        this.$( '.sl-radio-group' ).hasClass( 'disabled' ),\n+        'has \"disabled\" class'\n+    );\n+});\n+\n+test( 'The disabled state applies to sl-radio children', function( assert ) {\n+    this.set( 'testName', 'test' );\n+    this.render( hbs`\n+        {{#sl-radio-group disabled=true name='testName'}}\n+            {{#sl-radio label=\"One\" value=\"one\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Two\" value=\"two\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Three\" value=\"three\"}}\n+            {{/sl-radio}}\n+        {{/sl-radio-group}}\n+    ` );\n+\n+    assert.equal(\n+        this.$( '.sl-radio.disabled' ).length,\n+        3,\n+        'Rendered component has three disabled radio buttons'\n+    );\n+\n+    assert.equal(\n+        this.$( '.sl-radio input[disabled]' ).length,\n+        3,\n+        'Rendered component has three disabled inputs'\n+    );\n+});\n+\n+test( 'The readonly state applies to sl-radio children', function( assert ) {\n+    this.set( 'testName', 'test' );\n+    this.render( hbs`\n+        {{#sl-radio-group disabled=true name='testName' readonly=true}}\n+            {{#sl-radio label=\"One\" value=\"one\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Two\" value=\"two\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Three\" value=\"three\"}}\n+            {{/sl-radio}}\n+        {{/sl-radio-group}}\n+    ` );\n+\n+    assert.equal(\n+        this.$( '.sl-radio.readonly' ).length,\n+        3,\n+        'Rendered component has three readonly radio buttons'\n+    );\n+\n+    assert.equal(\n+        this.$( '.sl-radio input[readonly]' ).length,\n+        3,\n+        'Rendered component has three readonly inputs'\n+    );\n+});\n+\n+test( \"Inline true sets sl-radio children's inline property to true\", function( assert ) {\n+    this.set( 'testName', 'test' );\n+    this.render( hbs`\n+        {{#sl-radio-group inline=true name='testName'}}\n+            {{#sl-radio label=\"One\" value=\"one\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Two\" value=\"two\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Three\" value=\"three\"}}\n+            {{/sl-radio}}\n+        {{/sl-radio-group}}\n+    ` );\n+\n+    assert.equal(\n+        this.$( '.sl-radio.radio' ).length,\n+        0,\n+        'Rendered component has zero default radio buttons'\n+    );\n+\n+    assert.equal(\n+        this.$( '.sl-radio.radio-inline' ).length,\n+        3,\n+        'Rendered component has three inline radio buttons'\n+    );\n+});\n+\n+test( \"Inline false sets sl-radio children's inline property to false\", function( assert ) {\n+    this.set( 'testName', 'test' );\n+    this.render( hbs`\n+        {{#sl-radio-group inline=false name='testName'}}\n+            {{#sl-radio label=\"One\" value=\"one\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Two\" value=\"two\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Three\" value=\"three\"}}\n+            {{/sl-radio}}\n+        {{/sl-radio-group}}\n+    ` );\n+\n+    assert.equal(\n+        this.$( '.sl-radio.radio-inline' ).length,\n+        0,\n+        'Rendered component has zero inline radio buttons'\n+    );\n+\n+    assert.equal(\n+        this.$( '.sl-radio.radio' ).length,\n+        3,\n+        'Rendered component has three default (non-inline) radio buttons'\n+    );\n+});\n+\n+test( 'Value changes when sl-radio child selected', function( assert ) {\n+    this.set( 'value', 'jeremy' );\n+    this.render( hbs`\n+        {{#sl-radio-group  name='test' value='value'}}\n+            {{#sl-radio label=\"One\" value=\"eric\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Two\" value=\"josh\"}}\n+            {{/sl-radio}}\n+            {{#sl-radio label=\"Three\" value=\"michael\"}}\n+            {{/sl-radio}}\n+        {{/sl-radio-group}}\n+    ` );\n+\n+    assert.equal(","path":"tests/integration/components/sl-radio-group-test.js","position":144,"original_position":144,"commit_id":"a8fa0923066aac211695c3366ace6e728fd18331","original_commit_id":"a8fa0923066aac211695c3366ace6e728fd18331","user":{"login":"notmessenger","id":435544,"avatar_url":"https://avatars.githubusercontent.com/u/435544?v=3","gravatar_id":"","url":"https://api.github.com/users/notmessenger","html_url":"https://github.com/notmessenger","followers_url":"https://api.github.com/users/notmessenger/followers","following_url":"https://api.github.com/users/notmessenger/following{/other_user}","gists_url":"https://api.github.com/users/notmessenger/gists{/gist_id}","starred_url":"https://api.github.com/users/notmessenger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notmessenger/subscriptions","organizations_url":"https://api.github.com/users/notmessenger/orgs","repos_url":"https://api.github.com/users/notmessenger/repos","events_url":"https://api.github.com/users/notmessenger/events{/privacy}","received_events_url":"https://api.github.com/users/notmessenger/received_events","type":"User","site_admin":false},"body":"This assertion is unnecessary, as all you are testing is that the property has the same value on it you just set.  What would be beneficial though is a separate test that asserts that whatever value `value` is set to becomes the selected-by-default radio button.","created_at":"2015-08-25T17:35:32Z","updated_at":"2015-08-25T17:35:32Z","html_url":"https://github.com/softlayer/sl-ember-components/pull/683#discussion_r37894491","pull_request_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683","_links":{"self":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments/37894491"},"html":{"href":"https://github.com/softlayer/sl-ember-components/pull/683#discussion_r37894491"},"pull_request":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683"}}},"pull_request":{"url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683","id":43226836,"html_url":"https://github.com/softlayer/sl-ember-components/pull/683","diff_url":"https://github.com/softlayer/sl-ember-components/pull/683.diff","patch_url":"https://github.com/softlayer/sl-ember-components/pull/683.patch","issue_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/683","number":683,"state":"open","locked":false,"title":" Create integration test suite and migrate appropriate tests from unit test suite #598","user":{"login":"erangeles","id":13124163,"avatar_url":"https://avatars.githubusercontent.com/u/13124163?v=3","gravatar_id":"","url":"https://api.github.com/users/erangeles","html_url":"https://github.com/erangeles","followers_url":"https://api.github.com/users/erangeles/followers","following_url":"https://api.github.com/users/erangeles/following{/other_user}","gists_url":"https://api.github.com/users/erangeles/gists{/gist_id}","starred_url":"https://api.github.com/users/erangeles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erangeles/subscriptions","organizations_url":"https://api.github.com/users/erangeles/orgs","repos_url":"https://api.github.com/users/erangeles/repos","events_url":"https://api.github.com/users/erangeles/events{/privacy}","received_events_url":"https://api.github.com/users/erangeles/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-24T21:55:54Z","updated_at":"2015-08-25T17:35:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d828f879e84eefed978d52bef8d5d27f130e0e99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683/commits","review_comments_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683/comments","review_comment_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/683/comments","statuses_url":"https://api.github.com/repos/softlayer/sl-ember-components/statuses/a8fa0923066aac211695c3366ace6e728fd18331","head":{"label":"erangeles:issue598","ref":"issue598","sha":"a8fa0923066aac211695c3366ace6e728fd18331","user":{"login":"erangeles","id":13124163,"avatar_url":"https://avatars.githubusercontent.com/u/13124163?v=3","gravatar_id":"","url":"https://api.github.com/users/erangeles","html_url":"https://github.com/erangeles","followers_url":"https://api.github.com/users/erangeles/followers","following_url":"https://api.github.com/users/erangeles/following{/other_user}","gists_url":"https://api.github.com/users/erangeles/gists{/gist_id}","starred_url":"https://api.github.com/users/erangeles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erangeles/subscriptions","organizations_url":"https://api.github.com/users/erangeles/orgs","repos_url":"https://api.github.com/users/erangeles/repos","events_url":"https://api.github.com/users/erangeles/events{/privacy}","received_events_url":"https://api.github.com/users/erangeles/received_events","type":"User","site_admin":false},"repo":{"id":38387528,"name":"sl-ember-components","full_name":"erangeles/sl-ember-components","owner":{"login":"erangeles","id":13124163,"avatar_url":"https://avatars.githubusercontent.com/u/13124163?v=3","gravatar_id":"","url":"https://api.github.com/users/erangeles","html_url":"https://github.com/erangeles","followers_url":"https://api.github.com/users/erangeles/followers","following_url":"https://api.github.com/users/erangeles/following{/other_user}","gists_url":"https://api.github.com/users/erangeles/gists{/gist_id}","starred_url":"https://api.github.com/users/erangeles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erangeles/subscriptions","organizations_url":"https://api.github.com/users/erangeles/orgs","repos_url":"https://api.github.com/users/erangeles/repos","events_url":"https://api.github.com/users/erangeles/events{/privacy}","received_events_url":"https://api.github.com/users/erangeles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erangeles/sl-ember-components","description":"An Ember CLI Addon that provides a variety of UI components.","fork":true,"url":"https://api.github.com/repos/erangeles/sl-ember-components","forks_url":"https://api.github.com/repos/erangeles/sl-ember-components/forks","keys_url":"https://api.github.com/repos/erangeles/sl-ember-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erangeles/sl-ember-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erangeles/sl-ember-components/teams","hooks_url":"https://api.github.com/repos/erangeles/sl-ember-components/hooks","issue_events_url":"https://api.github.com/repos/erangeles/sl-ember-components/issues/events{/number}","events_url":"https://api.github.com/repos/erangeles/sl-ember-components/events","assignees_url":"https://api.github.com/repos/erangeles/sl-ember-components/assignees{/user}","branches_url":"https://api.github.com/repos/erangeles/sl-ember-components/branches{/branch}","tags_url":"https://api.github.com/repos/erangeles/sl-ember-components/tags","blobs_url":"https://api.github.com/repos/erangeles/sl-ember-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erangeles/sl-ember-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erangeles/sl-ember-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/erangeles/sl-ember-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erangeles/sl-ember-components/statuses/{sha}","languages_url":"https://api.github.com/repos/erangeles/sl-ember-components/languages","stargazers_url":"https://api.github.com/repos/erangeles/sl-ember-components/stargazers","contributors_url":"https://api.github.com/repos/erangeles/sl-ember-components/contributors","subscribers_url":"https://api.github.com/repos/erangeles/sl-ember-components/subscribers","subscription_url":"https://api.github.com/repos/erangeles/sl-ember-components/subscription","commits_url":"https://api.github.com/repos/erangeles/sl-ember-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/erangeles/sl-ember-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/erangeles/sl-ember-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/erangeles/sl-ember-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/erangeles/sl-ember-components/contents/{+path}","compare_url":"https://api.github.com/repos/erangeles/sl-ember-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erangeles/sl-ember-components/merges","archive_url":"https://api.github.com/repos/erangeles/sl-ember-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erangeles/sl-ember-components/downloads","issues_url":"https://api.github.com/repos/erangeles/sl-ember-components/issues{/number}","pulls_url":"https://api.github.com/repos/erangeles/sl-ember-components/pulls{/number}","milestones_url":"https://api.github.com/repos/erangeles/sl-ember-components/milestones{/number}","notifications_url":"https://api.github.com/repos/erangeles/sl-ember-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erangeles/sl-ember-components/labels{/name}","releases_url":"https://api.github.com/repos/erangeles/sl-ember-components/releases{/id}","created_at":"2015-07-01T18:22:28Z","updated_at":"2015-07-30T19:12:44Z","pushed_at":"2015-08-24T21:55:17Z","git_url":"git://github.com/erangeles/sl-ember-components.git","ssh_url":"git@github.com:erangeles/sl-ember-components.git","clone_url":"https://github.com/erangeles/sl-ember-components.git","svn_url":"https://github.com/erangeles/sl-ember-components","homepage":"http://softlayer.github.io/sl-ember-components","size":7519,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"softlayer:EmberCli-1.13.8","ref":"EmberCli-1.13.8","sha":"5cba5fa05696f3d6c034c793df5dc8aa1a33b7c3","user":{"login":"softlayer","id":49550,"avatar_url":"https://avatars.githubusercontent.com/u/49550?v=3","gravatar_id":"","url":"https://api.github.com/users/softlayer","html_url":"https://github.com/softlayer","followers_url":"https://api.github.com/users/softlayer/followers","following_url":"https://api.github.com/users/softlayer/following{/other_user}","gists_url":"https://api.github.com/users/softlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/softlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softlayer/subscriptions","organizations_url":"https://api.github.com/users/softlayer/orgs","repos_url":"https://api.github.com/users/softlayer/repos","events_url":"https://api.github.com/users/softlayer/events{/privacy}","received_events_url":"https://api.github.com/users/softlayer/received_events","type":"Organization","site_admin":false},"repo":{"id":26869437,"name":"sl-ember-components","full_name":"softlayer/sl-ember-components","owner":{"login":"softlayer","id":49550,"avatar_url":"https://avatars.githubusercontent.com/u/49550?v=3","gravatar_id":"","url":"https://api.github.com/users/softlayer","html_url":"https://github.com/softlayer","followers_url":"https://api.github.com/users/softlayer/followers","following_url":"https://api.github.com/users/softlayer/following{/other_user}","gists_url":"https://api.github.com/users/softlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/softlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softlayer/subscriptions","organizations_url":"https://api.github.com/users/softlayer/orgs","repos_url":"https://api.github.com/users/softlayer/repos","events_url":"https://api.github.com/users/softlayer/events{/privacy}","received_events_url":"https://api.github.com/users/softlayer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/softlayer/sl-ember-components","description":"An Ember CLI Addon that provides a variety of UI components.","fork":false,"url":"https://api.github.com/repos/softlayer/sl-ember-components","forks_url":"https://api.github.com/repos/softlayer/sl-ember-components/forks","keys_url":"https://api.github.com/repos/softlayer/sl-ember-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/softlayer/sl-ember-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/softlayer/sl-ember-components/teams","hooks_url":"https://api.github.com/repos/softlayer/sl-ember-components/hooks","issue_events_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/events{/number}","events_url":"https://api.github.com/repos/softlayer/sl-ember-components/events","assignees_url":"https://api.github.com/repos/softlayer/sl-ember-components/assignees{/user}","branches_url":"https://api.github.com/repos/softlayer/sl-ember-components/branches{/branch}","tags_url":"https://api.github.com/repos/softlayer/sl-ember-components/tags","blobs_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/softlayer/sl-ember-components/statuses/{sha}","languages_url":"https://api.github.com/repos/softlayer/sl-ember-components/languages","stargazers_url":"https://api.github.com/repos/softlayer/sl-ember-components/stargazers","contributors_url":"https://api.github.com/repos/softlayer/sl-ember-components/contributors","subscribers_url":"https://api.github.com/repos/softlayer/sl-ember-components/subscribers","subscription_url":"https://api.github.com/repos/softlayer/sl-ember-components/subscription","commits_url":"https://api.github.com/repos/softlayer/sl-ember-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/softlayer/sl-ember-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/softlayer/sl-ember-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/softlayer/sl-ember-components/contents/{+path}","compare_url":"https://api.github.com/repos/softlayer/sl-ember-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/softlayer/sl-ember-components/merges","archive_url":"https://api.github.com/repos/softlayer/sl-ember-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/softlayer/sl-ember-components/downloads","issues_url":"https://api.github.com/repos/softlayer/sl-ember-components/issues{/number}","pulls_url":"https://api.github.com/repos/softlayer/sl-ember-components/pulls{/number}","milestones_url":"https://api.github.com/repos/softlayer/sl-ember-components/milestones{/number}","notifications_url":"https://api.github.com/repos/softlayer/sl-ember-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/softlayer/sl-ember-components/labels{/name}","releases_url":"https://api.github.com/repos/softlayer/sl-ember-components/releases{/id}","created_at":"2014-11-19T16:07:47Z","updated_at":"2015-08-14T07:26:51Z","pushed_at":"2015-08-25T16:31:44Z","git_url":"git://github.com/softlayer/sl-ember-components.git","ssh_url":"git@github.com:softlayer/sl-ember-components.git","clone_url":"https://github.com/softlayer/sl-ember-components.git","svn_url":"https://github.com/softlayer/sl-ember-components","homepage":"http://softlayer.github.io/sl-ember-components","size":12140,"stargazers_count":86,"watchers_count":86,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"open_issues_count":166,"forks":23,"open_issues":166,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683"},"html":{"href":"https://github.com/softlayer/sl-ember-components/pull/683"},"issue":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/issues/683"},"comments":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/issues/683/comments"},"review_comments":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683/comments"},"review_comment":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/pulls/683/commits"},"statuses":{"href":"https://api.github.com/repos/softlayer/sl-ember-components/statuses/a8fa0923066aac211695c3366ace6e728fd18331"}}}}