Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 13, 2024
1 parent 746f83a commit 1ea1a02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/support/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ class Agent

field :name, type: String
field :email_ciphertext, type: String
field :personal_email_ciphertext, type: String

key_pair = Lockbox.generate_key_pair
has_encrypted :email, algorithm: "hybrid", encryption_key: key_pair[:encryption_key]
has_encrypted :personal_email, algorithm: "hybrid", encryption_key: key_pair[:encryption_key], decryption_key: -> { nil }
end

0 comments on commit 1ea1a02

Please sign in to comment.