Skip to content

Commit

Permalink
Add better assertions for encryption test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Voswinkel committed May 6, 2020
1 parent 6c5b1a3 commit a8e1eba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/integration/rails_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@

it "encrypts attributes" do
person = LazySinglePerson.create!(ssn: "123-45-6789")
expect(person.ssn_encrypted).to be
expect(person.ssn_encrypted.length).to eq(61)
expect(person.ssn_encrypted).to start_with("vault:v1:")
expect(person.ssn_encrypted.encoding).to eq(Encoding::UTF_8)
end

Expand Down

0 comments on commit a8e1eba

Please sign in to comment.