Skip to content

Commit

Permalink
Updated test for frozen string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 22, 2024
1 parent 2c1c131 commit 82de74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/model_types_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def assert_attribute(attribute, value, format: nil, time_zone: false, check_nil:
if format
key = Lockbox.attribute_key(table: "users", attribute: encrypted_attribute)
box = Lockbox.new(key: key, encode: true)
assert_equal format.force_encoding(Encoding::BINARY), box.decrypt(user.send(encrypted_attribute))
assert_equal format.b, box.decrypt(user.send(encrypted_attribute))
end

if check_nil
Expand Down

0 comments on commit 82de74c

Please sign in to comment.