From 7d0f79c29b22e69d02e477c77e8402c4ca28f088 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Mon, 7 May 2012 15:43:53 -0700 Subject: [PATCH] fix pg rspec --- spec/controllers/home_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb index b74842453..8389fdecf 100644 --- a/spec/controllers/home_controller_spec.rb +++ b/spec/controllers/home_controller_spec.rb @@ -23,14 +23,14 @@ describe HomeController do end it "points to a user's profile page if a user is an admin without contacts" do - alice.contacts.delete_all + alice.contacts.destroy_all Role.add_admin(alice.person) get :show, :home => true response.should redirect_to(person_path(alice.person)) end it "points to the root_path if a user is an admin without contacts" do - alice.contacts.delete_all + alice.contacts.destroy_all Role.add_beta(alice.person) get :show, :home => true response.should redirect_to(person_path(alice.person))