fix public test to include .atom format

This commit is contained in:
maxwell 2011-03-30 11:32:10 -07:00
parent cb87ba68b8
commit 73256d598a

View file

@ -29,11 +29,17 @@ describe UsersController do
end end
describe '#public' do describe '#public' do
it 'renders xml' do it 'renders xml if atom is requested' do
sm = Factory(:status_message, :public => true, :author => @user.person) sm = Factory(:status_message, :public => true, :author => @user.person)
get :public, :username => @user.username, :format => :atom get :public, :username => @user.username, :format => :atom
response.body.should include(sm.text) response.body.should include(sm.text)
end end
it 'redirects to a profile page if html is requested' do
get :public, :username => @user.username
response.should be_redirect
end
end end
describe '#update' do describe '#update' do