Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-08-01 00:10:38 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-08-01 00:12:00 +0300
commit9485a0263985a5c2a41446e020e02c2accabc2bb (patch)
tree01bf7a345b4cc80009586c8832ff2a5fdb905a8a /spec/controllers/registrations_controller_spec.rb
parent02eba842aed40e6411fbed8db9e32fcd0e59c642 (diff)
parenteaedd3d26ca7e993e42fba02bc4e4fc5e72ae73e (diff)
Merge branch 'next-minor'v0.7.18.0
Diffstat (limited to 'spec/controllers/registrations_controller_spec.rb')
-rw-r--r--spec/controllers/registrations_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/registrations_controller_spec.rb b/spec/controllers/registrations_controller_spec.rb
index 7bb94bcaa..8c43191a5 100644
--- a/spec/controllers/registrations_controller_spec.rb
+++ b/spec/controllers/registrations_controller_spec.rb
@@ -49,7 +49,7 @@ describe RegistrationsController, type: :controller do
it "does redirect if there are no invites available with this code" do
code = InvitationCode.create(user: bob)
- code.update_attributes(count: 0)
+ code.update(count: 0)
get :new, params: {invite: {token: code.token}}
expect(response).to redirect_to registrations_closed_path
@@ -67,7 +67,7 @@ describe RegistrationsController, type: :controller do
AppConfig.settings.enable_registrations = true
code = InvitationCode.create(user: bob)
- code.update_attributes(count: 0)
+ code.update(count: 0)
get :new, params: {invite: {token: code.token}}
expect(response).not_to be_redirect