spec/item_spec.rb in activity_feed-1.2 vs spec/item_spec.rb in activity_feed-1.2.1
- old
+ new
@@ -43,6 +43,13 @@
item.save
ActivityFeed.redis.zcard(ActivityFeed.feed_key(item.user_id)).should be(1)
ActivityFeed.aggregate_item(item)
ActivityFeed.redis.zcard(ActivityFeed.feed_key(item.user_id, true)).should be(1)
end
+
+ it 'should output all the attributes for an item for Ohm' do
+ item = Fabricate.build(ActivityFeed::Ohm::Item)
+
+ hash = JSON.parse(JSON.generate(item))
+ hash.keys.size.should be(8)
+ end
end
\ No newline at end of file