diff --git a/spec/components/system_message_spec.rb b/spec/components/system_message_spec.rb index 7db9728b71a..012fc1a2911 100644 --- a/spec/components/system_message_spec.rb +++ b/spec/components/system_message_spec.rb @@ -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