Commit ab3a7d99 authored by Braulio Martinez's avatar Braulio Martinez

Remove ugly whitespaces

parent 36c7c005
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment