Skip to content

Commit

Permalink
Code cleanup: replace RawData with plucking stage 1 fixing test #1454
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy committed Jan 13, 2025
1 parent d8e7e50 commit 2f660c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BrainPortal/spec/controllers/userfiles_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f660c7

Please sign in to comment.