Skip to content
Extraits de code Groupes Projets
people_controller_spec.rb 634 octets
Newer Older
  • Learn to ignore specific revisions
  • Raphael's avatar
    Raphael a validé
    #   Copyright (c) 2010, Disapora Inc.  This file is
    #   licensed under the Affero General Public License version 3.  See
    #   the COPYRIGHT file.
    
    require File.dirname(__FILE__) + '/../spec_helper'
     
    describe PeopleController do
      render_views
      before do
    
        @user = Factory.create(:user)
    
    Raphael's avatar
    Raphael a validé
        @user.aspect(:name => "lame-os")
    
      end
    
      it "index should yield search results for substring of person name" do
    
        Person.should_receive(:search)
    
      
      it 'should go to the current_user show page' do
        get :show, :id => @user.person.id
      end