huge basketball shorts
This commit is contained in:
parent
4e14dd2d01
commit
c3c3d57d69
1 changed files with 4 additions and 4 deletions
|
|
@ -34,16 +34,16 @@ describe("app.pages.Profile", function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
context("profile control pane", 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)
|
spyOn(this.page, "isOwnProfile").andReturn(true)
|
||||||
this.page.render()
|
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)
|
spyOn(this.page, "isOwnProfile").andReturn(false)
|
||||||
this.page.render()
|
this.page.render()
|
||||||
expect(this.page.$("#profile-controls .control").length).toBe(0)
|
expect(this.page.$("#profile-controls .control").length).toBe(1)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue