remove useless specs
This commit is contained in:
parent
ea58324aa8
commit
d700c66deb
4 changed files with 0 additions and 72 deletions
|
|
@ -1,34 +0,0 @@
|
|||
describe("app.views.Post.Day", function(){
|
||||
beforeEach(function(){
|
||||
this.post = factory.post()
|
||||
this.view = new app.views.Post.Day({model : this.post})
|
||||
})
|
||||
|
||||
describe("rendering", function(){
|
||||
it("is happy", function(){
|
||||
this.view.render()
|
||||
})
|
||||
|
||||
describe("when the body is under 200 characters", function(){
|
||||
it("has class shortBody", function(){
|
||||
this.post.set({text : "Headline\nLol this is a short body"})
|
||||
this.view.render()
|
||||
expect(this.view.$("section.body")).toHaveClass("short_body")
|
||||
})
|
||||
})
|
||||
|
||||
describe("when the body is over 200 characters", function(){
|
||||
it("has doesn't have headline", function(){
|
||||
this.post.set({text :"HEADLINE\nVegan bushwick tempor labore. Nulla seitan anim, aesthetic ex gluten-free viral" +
|
||||
"thundercats street art. Occaecat carles deserunt lomo messenger bag wes anderson. Narwhal cray selvage " +
|
||||
"dolor. Mixtape wes anderson american apparel, mustache readymade cred nulla squid veniam small batch id " +
|
||||
"cupidatat. Pork belly high life consequat, raw denim sint terry richardson seitan single-origin coffee " +
|
||||
"butcher. Sint yr fugiat cillum."
|
||||
})
|
||||
|
||||
this.view.render()
|
||||
expect(this.view.$("section.body")).not.toHaveClass("short_body")
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
describe("app.views.Post.Newspaper", function(){
|
||||
beforeEach(function(){
|
||||
this.post = factory.post()
|
||||
this.view = new app.views.Post.Newspaper({model : this.post})
|
||||
})
|
||||
|
||||
describe("rendering", function(){
|
||||
it("is happy", function(){
|
||||
this.view.render()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
describe("app.views.Post.Night", function(){
|
||||
beforeEach(function(){
|
||||
this.post = factory.post()
|
||||
this.view = new app.views.Post.Night({model : this.post})
|
||||
})
|
||||
|
||||
describe("rendering", function(){
|
||||
it("is happy", function(){
|
||||
this.view.render()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
describe("app.views.Post.Wallpaper", function(){
|
||||
beforeEach(function(){
|
||||
this.post = factory.post({photos : [factory.photoAttrs({sizes :{large : "http://omgimabackground.com/wow.gif"}})]})
|
||||
this.view = new app.views.Post.Wallpaper({model : this.post})
|
||||
})
|
||||
|
||||
describe("rendering", function(){
|
||||
it("has the image as the photo-fill", function(){
|
||||
this.view.render()
|
||||
expect(this.view.$(".photo-fill").data("img-src")).toBe("http://omgimabackground.com/wow.gif") //for the cuke
|
||||
expect(this.view.$(".photo-fill").css("background-image")).toMatch('http://omgimabackground.com/wow.gif')
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
Reference in a new issue