fix public test to include .atom format
This commit is contained in:
parent
cb87ba68b8
commit
73256d598a
1 changed files with 7 additions and 1 deletions
|
|
@ -29,11 +29,17 @@ describe UsersController do
|
|||
end
|
||||
|
||||
describe '#public' do
|
||||
it 'renders xml' do
|
||||
it 'renders xml if atom is requested' do
|
||||
sm = Factory(:status_message, :public => true, :author => @user.person)
|
||||
get :public, :username => @user.username, :format => :atom
|
||||
response.body.should include(sm.text)
|
||||
end
|
||||
|
||||
it 'redirects to a profile page if html is requested' do
|
||||
|
||||
get :public, :username => @user.username
|
||||
response.should be_redirect
|
||||
end
|
||||
end
|
||||
|
||||
describe '#update' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue