Skip to content

Commit

Permalink
Fixed Issue #3382 - The comments under postings are missing when usin…
Browse files Browse the repository at this point in the history
…g the #tags -view
  • Loading branch information
zscott committed Jun 19, 2012
1 parent fd748b8 commit 82a47d0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tags_controller.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def show
@stream = Stream::Tag.new(current_user, params[:name], :max_time => max_time, :page => params[:page]) @stream = Stream::Tag.new(current_user, params[:name], :max_time => max_time, :page => params[:page])


respond_with do |format| 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
end end


Expand Down
23 changes: 23 additions & 0 deletions features/tags_and_comments.feature
Original file line number Original file line Diff line number Diff line change
@@ -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"


0 comments on commit 82a47d0

Please sign in to comment.