require 'spec_helper' describe ActivityStreams::PhotosController do describe '#create' do before do @json = JSON.parse < token.access_token) response.should be_success end # It is unclear why this test fails. An equivalent cucumber feature passes in features/logs_in_and_out.feature. =begin it 'does not store a session' do bob.reset_authentication_token! get :create, @json.merge!(:auth_token => bob.authentication_token) photo = ActivityStreams::Photo.where(:author_id => bob.person.id).first warden.should be_authenticated get :show, :id => photo.id warden.should_not be_authenticated response.should redirect_to new_user_session_path end =end end end