@@ -324,11 +324,11 @@ describe('buttons', function() {
324
324
} ) ;
325
325
326
326
describe ( 'uibUncheckable' , function ( ) {
327
- it ( 'should set uncheckable ' , function ( ) {
327
+ it ( 'should set disabled ' , function ( ) {
328
328
$scope . uncheckable = false ;
329
329
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 ( ) ;
332
332
333
333
expect ( $scope . model ) . toBeUndefined ( ) ;
334
334
@@ -346,8 +346,8 @@ describe('buttons', function() {
346
346
347
347
$scope . uncheckable = true ;
348
348
$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 ( ) ;
351
351
352
352
btns . eq ( 0 ) . click ( ) ;
353
353
expect ( $scope . model ) . toEqual ( 1 ) ;
@@ -356,10 +356,10 @@ describe('buttons', function() {
356
356
expect ( $scope . model ) . toEqual ( 1 ) ;
357
357
358
358
btns . eq ( 1 ) . click ( ) ;
359
- expect ( $scope . model ) . toEqual ( 2 ) ;
359
+ expect ( $scope . model ) . toEqual ( 1 ) ;
360
360
361
361
btns . eq ( 1 ) . click ( ) ;
362
- expect ( $scope . model ) . toBeNull ( ) ;
362
+ expect ( $scope . model ) . toEqual ( 1 ) ;
363
363
} ) ;
364
364
} ) ;
365
365
} ) ;
0 commit comments