Corrected the message length spec.

This commit is contained in:
Pistos 2011-11-09 21:35:16 -05:00
parent e5d37c7949
commit 31b43f315e

View file

@ -116,12 +116,10 @@ describe StatusMessage do
db_status.text.should == message db_status.text.should == message
end end
it 'should require status messages to be less than 65535 characters' do it 'should require status messages not be more than 65535 characters long' do
message = '' message = 'a' * (65535+1)
65535.times{message = message +'1'} status_message = Factory.build(:status_message, :text => message)
status = Factory.build(:status_message, :text => message) status_message.should_not be_valid
status.should_not be_valid
end end
describe 'mentions' do describe 'mentions' do