Merge pull request #5510 from discourse/add-posts-count-to-web-hook-post-serializer

Feature: add topic posts count to webhook post serializer
This commit is contained in:
Guo Xiang Tan
2018-01-23 07:46:59 +08:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ RSpec.describe WebHookPostSerializer do
it 'should only include the required keys' do
count = serializer.as_json.keys.count
difference = count - 40
difference = count - 41
expect(difference).to eq(0), lambda {
message = ""