Commit b0e428b3 authored by Steven Hancock's avatar Steven Hancock
Browse files

Merge pull request #3398 from zscott/3382_fix

Fixed Issue #3382 - The comments under postings are missing when using t...
parents fd748b8a 82a47d0b
......@@ -35,7 +35,7 @@ class TagsController < ApplicationController
@stream = Stream::Tag.new(current_user, params[:name], :max_time => max_time, :page => params[:page])
respond_with do |format|
format.json{ render :json => PostPresenter.collection_json(@stream.stream_posts, current_user) }
format.json { render :json => @stream.stream_posts.map { |p| LastThreeCommentsDecorator.new(PostPresenter.new(p, current_user)) }}
end
end
......
@javascript
Feature: Issue #3382 The comments under postings are missing when using the #tags -view
Background:
Given a user named "Bob Jones" with email "bob@bob.bob"
And I sign in as "bob@bob.bob"
When I post "This is a post with a #tag"
And I wait for 1 second
And I am on the homepage
Scenario:
When I search for "#tag"
Then I should be on the tag page for "tag"
And I should see "This is a post with a #tag"
Scenario:
When I comment "this is a comment on my post" on "This is a post with a #tag"
And I wait for the ajax to finish
And I search for "#tag"
Then I should be on the tag page for "tag"
And I should see "this is a comment on my post"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment