FIX: system_message_spec was failing because max_post_length was exceeded

This commit is contained in:
Neil Lalonde 2014-07-22 10:28:10 -04:00
parent 78ea81afb6
commit 6c2e7294dc
1 changed files with 3 additions and 0 deletions

View File

@ -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