mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:58:48 +08:00
PERF: Active Record #pluck is twice faster
PERF: SqlBuilder bypasses AR converters and uses PG directly
This commit is contained in:
@ -2,9 +2,6 @@ require 'spec_helper'
|
||||
require_dependency 'post_destroyer'
|
||||
|
||||
describe PostAction do
|
||||
it { is_expected.to belong_to :user }
|
||||
it { is_expected.to belong_to :post }
|
||||
it { is_expected.to belong_to :post_action_type }
|
||||
it { is_expected.to rate_limit }
|
||||
|
||||
let(:moderator) { Fabricate(:moderator) }
|
||||
@ -458,6 +455,7 @@ describe PostAction do
|
||||
end
|
||||
|
||||
expect(topic.reload.closed).to eq(true)
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user