From dbfb18e249dfe3f9952b241e8aec3713600e935c Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Sun, 1 Jan 2012 14:20:46 -0500 Subject: [PATCH] display reshare counts; test inf scroll & reshare counter in jasmine instead of cucumber --- app/models/post.rb | 1 + app/views/templates/reshare.jst | 5 ++ app/views/templates/stream_element.jst | 5 ++ features/infinite_scroll.feature | 40 ---------- features/reshare.feature | 13 ---- public/javascripts/app/views/stream_view.js | 6 +- .../jasmine_fixtures/stream_spec.rb | 13 ++-- spec/javascripts/app/views/post_view_spec.js | 16 ++++ .../javascripts/app/views/stream_view_spec.js | 76 +++++++++++++++---- spec/javascripts/app/views_spec.js | 1 - 10 files changed, 98 insertions(+), 78 deletions(-) delete mode 100644 features/infinite_scroll.feature diff --git a/app/models/post.rb b/app/models/post.rb index 8cfee8d0b..8cd934fc6 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -21,6 +21,7 @@ class Post < ActiveRecord::Base t.add :created_at t.add :comments_count t.add :likes_count + t.add :reshares_count t.add :last_three_comments t.add :provider_display_name t.add :author diff --git a/app/views/templates/reshare.jst b/app/views/templates/reshare.jst index 7167a8773..aa7ec26e4 100644 --- a/app/views/templates/reshare.jst +++ b/app/views/templates/reshare.jst @@ -19,6 +19,11 @@