From c3c3d57d69a4a5704cced652eec39f2e67cd888c Mon Sep 17 00:00:00 2001
From: Dennis Collinson <dennis.collective@gmail.com>
Date: Wed, 25 Apr 2012 16:58:15 -0700
Subject: [PATCH] huge basketball shorts

---
 spec/javascripts/app/pages/profile_spec.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/spec/javascripts/app/pages/profile_spec.js b/spec/javascripts/app/pages/profile_spec.js
index 954fe92732..6604bda7c7 100644
--- a/spec/javascripts/app/pages/profile_spec.js
+++ b/spec/javascripts/app/pages/profile_spec.js
@@ -34,16 +34,16 @@ describe("app.pages.Profile", function(){
     });
 
     context("profile control pane", function(){
-      it("is shown", function() {
+      it("shows the edit and create buttons if it's your profile", function() {
         spyOn(this.page, "isOwnProfile").andReturn(true)
         this.page.render()
-        expect(this.page.$("#profile-controls .control").length).not.toBe(0)
+        expect(this.page.$("#profile-controls .control").length).toBe(2)
       })
 
-      it("is not shown", function() {
+      it("shows a follow button if not", function() {
         spyOn(this.page, "isOwnProfile").andReturn(false)
         this.page.render()
-        expect(this.page.$("#profile-controls .control").length).toBe(0)
+        expect(this.page.$("#profile-controls .control").length).toBe(1)
       })
     })
 
-- 
GitLab