Newer
Older
# licensed under the Affero General Public License version 3 or later. See
Daniel Vincent Grippi
a validé
describe PeopleController do
render_views
before do
end
it "index should yield search results for substring of person name" do
eugene = Factory.create(:person, :profile => {:first_name => "Eugene", :last_name => "w"})
get :index, :q => "Eu"
assigns[:people].should include eugene
end
it 'should go to the current_user show page' do
get :show, :id => @user.person.id
end
Raphael
a validé
it "doesn't error out on an invalid id" do
get :show, :id => 'delicious'
end
it "doesn't error out on a nonexistent person" do
get :show, :id => @user.id
end