Get rid of deprecation warning

This commit is contained in:
Raphael 2010-10-29 18:55:30 -07:00
parent 49e1bde150
commit f7708fb9bf

View file

@ -44,7 +44,7 @@ describe RegistrationsController do
@valid_params["user"]["password_confirmation"] = "baddword" @valid_params["user"]["password_confirmation"] = "baddword"
@invalid_params = @valid_params @invalid_params = @valid_params
user = Factory.build(:user) 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) User.stub!(:build).and_return(user)
end end
it "does not create a user" do it "does not create a user" do