spec/javascripts/appSpec.js in appjs-rails-1.0.5 vs spec/javascripts/appSpec.js in appjs-rails-1.0.6

- old
+ new

@@ -66,6 +66,24 @@ it('#addEvent', function(){ app._ajax.addEvent.lockAfterClick(); }) }) + describe('#_bootstrap', function(){ + it('#inputDownCounter', function(){ + $('body').append('<div class="jasmine-content"><input class="js-input-down-counter-25" value="Example"></div>') + app._bootstrap.inputDownCounter(); + expect($('input').next().text()).toEqual('18'); + $('.jasmine-content').remove(); + }) + + it('#showIcons', function(){ + app._bootstrap.showIcons(); + }) + + it('#icon', function(){ + expect(app._bootstrap.icon('ok')).toEqual($("<span class='glyphicon glyphicon-ok'></span>")); + }) + + }) + });