From d631af5a05a692ce9781f61caa38fef60bb0c4a4 Mon Sep 17 00:00:00 2001 From: Rob Jacobs Date: Sat, 18 Oct 2014 09:21:53 -0400 Subject: [PATCH] fix(alert): rename alert-dismissable to alert-dismissible The use of alert-dismissable is now deprecated in correspondence with https://github.com/twbs/bootstrap/pull/13845 --- src/alert/test/alert.spec.js | 8 ++++---- template/alert/alert.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/alert/test/alert.spec.js b/src/alert/test/alert.spec.js index fa0b4fb619..271833309a 100644 --- a/src/alert/test/alert.spec.js +++ b/src/alert/test/alert.spec.js @@ -68,12 +68,12 @@ describe('alert', function () { } }); - it('should show close buttons and have the dismissable class', function () { + it('should show close buttons and have the dismissible class', function () { var alerts = createAlerts(); for (var i = 0, n = alerts.length; i < n; i++) { expect(findCloseButton(i).css('display')).not.toBe('none'); - expect(alerts.eq(i)).toHaveClass('alert-dismissable'); + expect(alerts.eq(i)).toHaveClass('alert-dismissible'); } }); @@ -91,11 +91,11 @@ describe('alert', function () { expect(scope.removeAlert).toHaveBeenCalledWith(1); }); - it('should not show close button and have the dismissable class if no close callback specified', function () { + it('should not show close button and have the dismissible class if no close callback specified', function () { element = $compile('No close')(scope); scope.$digest(); expect(findCloseButton(0)).toBeHidden(); - expect(element).not.toHaveClass('alert-dismissable'); + expect(element).not.toHaveClass('alert-dismissible'); }); it('should be possible to add additional classes for alert', function () { diff --git a/template/alert/alert.html b/template/alert/alert.html index 6415960996..c813624858 100644 --- a/template/alert/alert.html +++ b/template/alert/alert.html @@ -1,4 +1,4 @@ -