diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-08-01 00:10:38 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-08-01 00:12:00 +0300 |
commit | 9485a0263985a5c2a41446e020e02c2accabc2bb (patch) | |
tree | 01bf7a345b4cc80009586c8832ff2a5fdb905a8a /spec/controllers/registrations_controller_spec.rb | |
parent | 02eba842aed40e6411fbed8db9e32fcd0e59c642 (diff) | |
parent | eaedd3d26ca7e993e42fba02bc4e4fc5e72ae73e (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.rb | 4 |
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 |