fix jasmine
This commit is contained in:
parent
31bfef9dd2
commit
410f2d436f
2 changed files with 4 additions and 4 deletions
|
|
@ -5,10 +5,10 @@ describe("app.views.CommentStream", function(){
|
|||
|
||||
describe("postRenderTemplate", function(){
|
||||
it("applies infield labels", function(){
|
||||
spyOn($.fn, "inFieldLabels")
|
||||
spyOn($.fn, "placeholder")
|
||||
this.view.postRenderTemplate()
|
||||
expect($.fn.inFieldLabels).toHaveBeenCalled()
|
||||
expect($.fn.inFieldLabels.mostRecentCall.object.selector).toBe("label")
|
||||
expect($.fn.placeholder).toHaveBeenCalled()
|
||||
expect($.fn.placeholder.mostRecentCall.object.selector).toBe("textarea")
|
||||
})
|
||||
|
||||
it("autoResizes the new comment textarea", function(){
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ src_files:
|
|||
- public/javascripts/vendor/timeago.js
|
||||
- public/javascripts/vendor/facebox.js
|
||||
- public/javascripts/vendor/markdown/*
|
||||
- public/javascripts/jquery.infieldlabel-custom.js
|
||||
- public/javascripts/vendor/jquery.placeholder.js
|
||||
- public/javascripts/vendor/backbone.js
|
||||
- public/javascripts/vendor/handlebars-1.0.0.beta.6.js
|
||||
- public/javascripts/fileuploader-custom.js
|
||||
|
|
|
|||
Loading…
Reference in a new issue