diff --git a/spec/javascripts/app/views/post/day_view_spec.js b/spec/javascripts/app/views/post/day_view_spec.js deleted file mode 100644 index cee11e33d..000000000 --- a/spec/javascripts/app/views/post/day_view_spec.js +++ /dev/null @@ -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") - }) - }) - }) -}) diff --git a/spec/javascripts/app/views/post/newspaper_spec.js b/spec/javascripts/app/views/post/newspaper_spec.js deleted file mode 100644 index 0dc5f37b0..000000000 --- a/spec/javascripts/app/views/post/newspaper_spec.js +++ /dev/null @@ -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() - }) - }) -}) \ No newline at end of file diff --git a/spec/javascripts/app/views/post/night_view_spec.js b/spec/javascripts/app/views/post/night_view_spec.js deleted file mode 100644 index 20303c3c3..000000000 --- a/spec/javascripts/app/views/post/night_view_spec.js +++ /dev/null @@ -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() - }) - }) -}) \ No newline at end of file diff --git a/spec/javascripts/app/views/post/wallpaper_view_spec.js b/spec/javascripts/app/views/post/wallpaper_view_spec.js deleted file mode 100644 index 77c88b852..000000000 --- a/spec/javascripts/app/views/post/wallpaper_view_spec.js +++ /dev/null @@ -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') - }) - }) -})