From f7708fb9bf28dfd486a58b26592c855071d6c3ee Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 29 Oct 2010 18:55:30 -0700 Subject: [PATCH] Get rid of deprecation warning --- spec/controllers/registrations_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/registrations_controller_spec.rb b/spec/controllers/registrations_controller_spec.rb index fe6e72d36..5bfb3cd26 100644 --- a/spec/controllers/registrations_controller_spec.rb +++ b/spec/controllers/registrations_controller_spec.rb @@ -44,7 +44,7 @@ describe RegistrationsController do @valid_params["user"]["password_confirmation"] = "baddword" @invalid_params = @valid_params user = Factory.build(:user) - user.stub!(:save){user.errors.add_to_base("hello"); false} + user.stub!(:save){user.errors.add(:base, "hello"); false} User.stub!(:build).and_return(user) end it "does not create a user" do