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/contacts_controller_spec.rb | |
parent | 02eba842aed40e6411fbed8db9e32fcd0e59c642 (diff) | |
parent | eaedd3d26ca7e993e42fba02bc4e4fc5e72ae73e (diff) |
Merge branch 'next-minor'v0.7.18.0
Diffstat (limited to 'spec/controllers/contacts_controller_spec.rb')
-rw-r--r-- | spec/controllers/contacts_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/contacts_controller_spec.rb b/spec/controllers/contacts_controller_spec.rb index 10cdc3ab5..2e32ec52e 100644 --- a/spec/controllers/contacts_controller_spec.rb +++ b/spec/controllers/contacts_controller_spec.rb @@ -76,7 +76,7 @@ describe ContactsController, :type => :controller do it "returns only contacts which are receiving (the user is sharing with them)" do contact = bob.contacts.first - contact.update_attributes(receiving: false) + contact.update(receiving: false) get :index, params: {params: {page: "1"}}, format: :json contact_ids = JSON.parse(response.body).map {|c| c["id"] } @@ -88,7 +88,7 @@ describe ContactsController, :type => :controller do context "set: all" do before do contact = bob.contacts.first - contact.update_attributes(receiving: false) + contact.update(receiving: false) end it "returns all contacts (sharing and receiving)" do |