Fixed Issue #3382 - The comments under postings are missing when using the #tags -view
This commit is contained in:
parent
fd748b8afb
commit
82a47d0ba3
2 changed files with 24 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
23
features/tags_and_comments.feature
Normal file
23
features/tags_and_comments.feature
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
@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"
|
||||
|
||||
|
||||
Loading…
Reference in a new issue