Get rid of deprecation warning
This commit is contained in:
parent
49e1bde150
commit
f7708fb9bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue