mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:46:19 +08:00
FIX: system_message_spec was failing because max_post_length was exceeded
This commit is contained in:
parent
78ea81afb6
commit
6c2e7294dc
|
@ -14,8 +14,11 @@ describe SystemMessage do
|
|||
let(:topic) { post.topic }
|
||||
|
||||
it 'should create a post correctly' do
|
||||
SiteSetting.stubs(:max_post_length).returns(100_000)
|
||||
post.should be_present
|
||||
post.should be_valid
|
||||
topic.should be_private_message
|
||||
topic.should be_valid
|
||||
topic.subtype.should == TopicSubtype.system_message
|
||||
topic.allowed_users.include?(user).should be_true
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user