From 3eaf7c48e60d2074f15c3e9648f579456cfd58b1 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sun, 12 Dec 2010 13:43:01 -0800 Subject: [PATCH] white space police --- spec/javascripts/view-spec.js | 52 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/spec/javascripts/view-spec.js b/spec/javascripts/view-spec.js index 157e374af..3a3333e6d 100644 --- a/spec/javascripts/view-spec.js +++ b/spec/javascripts/view-spec.js @@ -3,23 +3,23 @@ describe("View", function() { expect(typeof View === "object").toBeTruthy(); }); - describe("initialize", function() { - it("is called on DOM ready", function() { + describe("initialize", function() { + it("is called on DOM ready", function() { spyOn(View, "initialize"); $(View.initialize); expect(View.initialize).toHaveBeenCalled(); }); - }); + }); - describe("fancyBoxButtons", function() { - describe("selectors", function() { - it("is an array of all the selectors that will have fancybox attached", function() { + describe("fancyBoxButtons", function() { + describe("selectors", function() { + it("is an array of all the selectors that will have fancybox attached", function() { expect(typeof View.fancyBoxButtons.selectors === "object").toBeTruthy(); expect($.isArray(View.fancyBoxButtons.selectors)).toBeTruthy(); }); }); }); - + describe("debug", function() { describe("click", function() { beforeEach(function() { @@ -34,7 +34,7 @@ describe("View", function() { ); }); - it("is called when the user clicks an element matching the selector", function() { + it("is called when the user clicks an element matching the selector", function() { spyOn(View.debug, "click"); View.initialize(); $(View.debug.selector).click(); @@ -45,16 +45,16 @@ describe("View", function() { }); }); - describe("flashes", function() { - describe("animate", function() { - beforeEach(function() { + describe("flashes", function() { + describe("animate", function() { + beforeEach(function() { $("#jasmine_content").html( - '
' + - 'flash! flash! flash!' + + '
' + + 'flash! flash! flash!' + '
' ); }); - + it("is called when the DOM is ready", function() { spyOn(View.flashes, "animate").andCallThrough(); View.initialize(); @@ -62,9 +62,9 @@ describe("View", function() { }); }); }); - - describe("newRequest", function() { - beforeEach(function() { + + describe("newRequest", function() { + beforeEach(function() { $("#jasmine_content").html( '
' + '
' + @@ -79,7 +79,7 @@ describe("View", function() { ); }); - describe("submit", function() { + describe("submit", function() { it("is called when the user submits the form", function() { spyOn(View.newRequest, "submit").andCallThrough(); View.initialize(); @@ -94,15 +94,15 @@ describe("View", function() { describe("publisher", function() { beforeEach(function() { $("#jasmine_content").html( - '
' + - '' + - '' + + '
' + + '' + + '' + '' + '
' ); }); - describe("keydown", function() { + describe("keydown", function() { it("is called when the user types", function() { spyOn(View.publisher, "keydown"); View.initialize(); @@ -122,7 +122,7 @@ describe("View", function() { }); }); }); - + describe("search", function() { beforeEach(function() { $("#jasmine_content").html( @@ -170,7 +170,7 @@ describe("View", function() { '
' + 'Jasmine Specson' + '' - ); + ); }); describe("click", function() { it("adds the class 'active' when the user clicks the ul", function() { @@ -191,11 +191,11 @@ describe("View", function() { }); }); }); - + describe("webFingerForm", function() { beforeEach(function() { $("#jasmine_content").html( - '
' + + '
' + '

' + 'Add a new contact' + '

' +