From 73256d598ab742dee0eef8b997c2c4fca8fa5d5e Mon Sep 17 00:00:00 2001 From: maxwell Date: Wed, 30 Mar 2011 11:32:10 -0700 Subject: [PATCH] fix public test to include .atom format --- spec/controllers/users_controller_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index 4c5cfe76d..0b2ec3156 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -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