diff --git a/src/buttons/test/buttons.spec.js b/src/buttons/test/buttons.spec.js
index 63555801a7..70b5513563 100644
--- a/src/buttons/test/buttons.spec.js
+++ b/src/buttons/test/buttons.spec.js
@@ -212,6 +212,25 @@ describe('buttons', function () {
expect(btns.eq(1)).not.toHaveClass('active');
});
+ it('should handle string values in btn-radio value', function () {
+ $scope.model = 'Two';
+ var btns = compileButtons('', $scope);
+
+ expect(btns.eq(0)).not.toHaveClass('active');
+ expect(btns.eq(1)).toHaveClass('active');
+
+ btns.eq(0).click();
+ expect(btns.eq(0)).toHaveClass('active');
+ expect(btns.eq(1)).not.toHaveClass('active');
+ expect($scope.model).toEqual('One');
+
+ $scope.$digest();
+
+ expect(btns.eq(0)).toHaveClass('active');
+ expect(btns.eq(1)).not.toHaveClass('active');
+ expect($scope.model).toEqual('One');
+ });
+
describe('uncheckable', function () {
//model -> UI
it('should set active class based on model', function () {