Skip to content

Commit

Permalink
DEV: Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
udan11 committed Dec 10, 2019
1 parent 1ce15bc commit dcc92a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/models/post_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

context '#ciphertext' do
it 'works' do
expect(encrypt_post.raw).to eq(encrypt_post.raw)
ciphertext = "0$ciphertextbase64encoded=="
encrypt_post.update!(raw: "#{ciphertext}\nmetadata maybe?")

expect(encrypt_post.ciphertext).to eq(ciphertext)
end
end

Expand Down

0 comments on commit dcc92a8

Please sign in to comment.