From 2f660c755c424a67f7cba73460b14757740cc915 Mon Sep 17 00:00:00 2001 From: MontrealSergiy Date: Mon, 13 Jan 2025 15:30:14 -0500 Subject: [PATCH] Code cleanup: replace RawData with plucking stage 1 fixing test #1454 --- BrainPortal/spec/controllers/userfiles_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BrainPortal/spec/controllers/userfiles_controller_spec.rb b/BrainPortal/spec/controllers/userfiles_controller_spec.rb index b652365f3..0e693d9af 100644 --- a/BrainPortal/spec/controllers/userfiles_controller_spec.rb +++ b/BrainPortal/spec/controllers/userfiles_controller_spec.rb @@ -507,7 +507,7 @@ class << file; attr_reader :tempfile; end it "should update tags when requested" do tag = create(:tag, :userfiles => [admin_userfile], :user => admin) - allow(admin).to receive_message_chain(:available_tags, :pluck, :ids).and_return([tag.id]) + allow(admin).to receive_message_chain(:available_tags, :ids).and_return([tag.id]) post :update_multiple, params: {file_ids: [user_userfile.id], tags: [tag.id]} expect(user_userfile.tags).to match_array([tag]) end