added status message html and mobile spec

This commit is contained in:
Diaspora Europe 2012-03-22 16:59:14 +01:00
parent 97233851df
commit e8933fa1da

View file

@ -79,11 +79,23 @@ describe StatusMessagesController do
:aspect_ids => [@aspect1.id.to_s] }
}
it 'creates with valid html' do
post :create, status_message_hash.merge(:format => 'html')
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 valid mobile' do
post :create, status_message_hash.merge(: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