fix(refresher): finish animating before changing icon, hide when not in use

This commit is contained in:
Perry Govier
2014-08-07 17:54:30 -05:00
parent 8cf540e54c
commit c336e8ede8
5 changed files with 52 additions and 9 deletions

View File

@@ -65,7 +65,6 @@ describe('ionRefresher directive', function() {
expect(el.hasClass('active')).toBe(true);
expect(ctrl.scrollView.finishPullToRefresh).not.toHaveBeenCalled();
el.scope().$apply();
expect(el.hasClass('active')).toBe(false);
expect(ctrl.scrollView.finishPullToRefresh).toHaveBeenCalled();
});