@@ -324,11 +324,11 @@ describe('buttons', function() {
324324 } ) ;
325325
326326 describe ( 'uibUncheckable' , function ( ) {
327- it ( 'should set uncheckable ' , function ( ) {
327+ it ( 'should set disabled ' , function ( ) {
328328 $scope . uncheckable = false ;
329329 var btns = compileButtons ( '<button ng-model="model" uib-btn-radio="1">click1</button><button ng-model="model" uib-btn-radio="2" uib-uncheckable="uncheckable">click2</button>' , $scope ) ;
330- expect ( btns . eq ( 0 ) . attr ( 'uncheckable ' ) ) . toBeUndefined ( ) ;
331- expect ( btns . eq ( 1 ) . attr ( 'uncheckable ' ) ) . toBeUndefined ( ) ;
330+ expect ( btns . eq ( 0 ) . attr ( 'disabled ' ) ) . toBeUndefined ( ) ;
331+ expect ( btns . eq ( 1 ) . attr ( 'disabled ' ) ) . toBeUndefined ( ) ;
332332
333333 expect ( $scope . model ) . toBeUndefined ( ) ;
334334
@@ -346,8 +346,8 @@ describe('buttons', function() {
346346
347347 $scope . uncheckable = true ;
348348 $scope . $digest ( ) ;
349- expect ( btns . eq ( 0 ) . attr ( 'uncheckable ' ) ) . toBeUndefined ( ) ;
350- expect ( btns . eq ( 1 ) . attr ( 'uncheckable ' ) ) . toBeDefined ( ) ;
349+ expect ( btns . eq ( 0 ) . attr ( 'disabled ' ) ) . toBeUndefined ( ) ;
350+ expect ( btns . eq ( 1 ) . attr ( 'disabled ' ) ) . toBeDefined ( ) ;
351351
352352 btns . eq ( 0 ) . click ( ) ;
353353 expect ( $scope . model ) . toEqual ( 1 ) ;
@@ -356,10 +356,10 @@ describe('buttons', function() {
356356 expect ( $scope . model ) . toEqual ( 1 ) ;
357357
358358 btns . eq ( 1 ) . click ( ) ;
359- expect ( $scope . model ) . toEqual ( 2 ) ;
359+ expect ( $scope . model ) . toEqual ( 1 ) ;
360360
361361 btns . eq ( 1 ) . click ( ) ;
362- expect ( $scope . model ) . toBeNull ( ) ;
362+ expect ( $scope . model ) . toEqual ( 1 ) ;
363363 } ) ;
364364 } ) ;
365365 } ) ;
0 commit comments