Skip to content
Extraits de code Groupes Projets
Valider ab3a7d99 rédigé par Braulio Martinez's avatar Braulio Martinez
Parcourir les fichiers

Remove ugly whitespaces

parent 36c7c005
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -34,7 +34,7 @@ describe StatusMessagesController do
doc.xpath('//head').count.should equal 1
doc.xpath('//body').count.should equal 1
save_fixture(html_for('body'), 'empty_bookmarklet')
save_fixture(html_for('body'), 'empty_bookmarklet')
end
it 'accepts get params' do
......@@ -84,35 +84,35 @@ describe StatusMessagesController do
response.status.should == 302
response.should be_redirect
end
it 'creates with invalid html' do
post :create, status_message_hash.merge(:status_message => { :text => "0123456789" * 7000 })
response.status.should == 302
response.should be_redirect
end
it 'creates with valid json' do
post :create, status_message_hash.merge(:format => 'json')
response.status.should == 201
end
it 'creates with invalid json' do
post :create, status_message_hash.merge(:status_message => { :text => "0123456789" * 7000 }, :format => 'json')
response.status.should == 403
end
it 'creates with valid mobile' do
post :create, status_message_hash.merge(:format => 'mobile')
response.status.should == 302
response.should be_redirect
end
it 'creates with invalid mobile' do
post :create, status_message_hash.merge(:status_message => { :text => "0123456789" * 7000 }, :format => 'mobile')
response.status.should == 302
response.should be_redirect
end
it 'removes getting started from new users' do
@controller.should_receive(:remove_getting_started)
post :create, status_message_hash
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter