Sha256: 5e709d18ba04e575a037ca5228d045764233e5d93443f9533460b7874c476081

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

require 'test_helper'

class EncryptionTest < Test::Unit::TestCase
  def test_encrypt_decrypt
    encrypted = CookieMonster::Encryption.new('payload').encrypt
    decryptor = CookieMonster::Encryption.new(encrypted).decrypt

    assert_equal 'payload', decryptor
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cookie_monster-0.1.1 test/cookie_monster/test_encryption.rb
cookie_monster-0.0.1 test/cookie_monster/test_encryption.rb
cookie_monster-0.0.0 test/cookie_monster/test_encryption.rb