mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
Add test to verify autoclose moderator post
This commit is contained in:
parent
54a798eb12
commit
be234a2bc7
1 changed files with 7 additions and 0 deletions
|
@ -630,6 +630,13 @@ describe Topic do
|
||||||
context 'autoclosed' do
|
context 'autoclosed' do
|
||||||
let(:status) { 'autoclosed' }
|
let(:status) { 'autoclosed' }
|
||||||
it_should_behave_like 'a status that closes a topic'
|
it_should_behave_like 'a status that closes a topic'
|
||||||
|
|
||||||
|
it 'puts the autoclose duration in the moderator post' do
|
||||||
|
@topic.created_at = 3.days.ago
|
||||||
|
@topic.update_status(status, true, @user)
|
||||||
|
|
||||||
|
expect(@topic.posts.last.raw).to include "closed after 3 days"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue