add counts to small frame presentercomment out entirity of post_view feature in the hopes it will stop making rake hang

This commit is contained in:
Dennis Collinson 2012-05-12 18:08:45 -07:00
parent f6e3c1b88b
commit ec8625746e
2 changed files with 22 additions and 18 deletions

View file

@ -26,8 +26,13 @@ app.views.SmallFrame = app.views.Post.extend({
presenter : function(){
//todo : we need to have something better for small frame text, probably using the headline() scenario.
return _.extend(this.defaultPresenter(),
{text : this.model && app.helpers.textFormatter(this.model.get("text"), this.model),
adjustedImageHeight : this.adjustedImageHeight()})
{
text : this.model && app.helpers.textFormatter(this.model.get("text"), this.model),
adjustedImageHeight : this.adjustedImageHeight(),
likesCount : this.model.interactions.likesCount(),
resharesCount : this.model.interactions.resharesCount(),
commentsCount : this.model.interactions.commentsCount()
})
},
initialize : function() {

View file

@ -1,16 +1,15 @@
@javascript
Feature: Post Viewer
In order to make my content look really great
As a User
I want my posts to have a bunch of different templates that I can page through
Background:
Given a user with email "alice@alice.com"
And I sign in as "alice@alice.com"
# Wip tag sad on new cucumber, commenting for now.
# @wip
# Scenario: Paging through posts
# Given I have posts for each type of template
# Then I visit all of my posts
# And I should have seen all of my posts displayed with the correct template
#@javascript
#Feature: Post Viewer
# In order to make my content look really great
# As a User
# I want my posts to have a bunch of different templates that I can page through
#
# Background:
# Given a user with email "alice@alice.com"
# And I sign in as "alice@alice.com"
#
## Wip tag sad on new cucumber, commenting for now.
## Scenario: Paging through posts
## Given I have posts for each type of template
## Then I visit all of my posts
## And I should have seen all of my posts displayed with the correct template