Skip to content

Commit

Permalink
Fix backend spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lkleisa committed Jul 7, 2023
1 parent a1f3c75 commit bbacb09
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/unit/utils/encryptable_move_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
private_key = decrypt_private_key(bob)
target_folder = folders(:folder2)
team_password = target_folder.team.decrypt_team_password(bob, private_key)
Fabricate(:credential,
set_all_attrs: true,
Fabricate(:credential_all_attrs,
folder: target_folder,
team_password: team_password,
name: 'credentials1')
Expand Down Expand Up @@ -110,8 +109,8 @@
credential.save!


decrypted = credential.decrypt(new_folder.team.decrypt_team_password(bob, private_key))
expect(decrypted).to eq('abc42-code-42')
credential.decrypt(new_folder.team.decrypt_team_password(bob, private_key))
expect(credential.cleartext_custom_attr).to eq('abc42-code-42')
expect(credential.folder).to eq(new_folder)
end
end

0 comments on commit bbacb09

Please sign in to comment.