minor optimizations for post rejected logs

This commit is contained in:
Arpit Jalan
2018-06-02 09:25:41 +05:30
parent 597ffd7e3f
commit 36f9af4fa4
4 changed files with 17 additions and 8 deletions

View File

@ -504,6 +504,9 @@ describe StaffActionLogger do
it 'creates a new UserHistory record' do
expect { log_post_rejected }.to change { UserHistory.count }.by(1)
user_history = UserHistory.last
expect(user_history.action).to eq(UserHistory.actions[:post_rejected])
expect(user_history.details).to include(rejected_post.raw)
end
end
end