diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb index b7484245387ddcf2cb46ee719d60c79699deed89..8389fdecf23c78f6c37a02d666dbb341a540902b 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))