FIX: Posts with Staff Colors were excluded from the group activity

Now they are included, with the correct color applied.
This commit is contained in:
Robin Ward
2020-12-10 14:55:53 -05:00
parent 820b3e672a
commit a51a06115a
5 changed files with 20 additions and 3 deletions

View File

@ -461,6 +461,15 @@ describe GroupsController do
expect(response.status).to eq(200)
expect(response.parsed_body.first["id"]).to eq(post.id)
end
it "returns moderator actions" do
sign_in(user)
post = Fabricate(:post, user: user, post_type: Post.types[:moderator_action])
get "/groups/#{group.name}/posts.json"
expect(response.status).to eq(200)
expect(response.parsed_body.first["id"]).to eq(post.id)
end
end
describe "#members" do