Sha256: a6a27e161f92f5fe43554a712dabe5ec82ef21ec9771e42a1f0ec402b788641f

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

require 'test_helper'

class CookieMonsterTest < Test::Unit::TestCase
  def test_configuration
    CookieMonster.configure do |config|
      config.key = 'a key'
      config.iv = 'iv'
    end

    assert_equal 'a key', CookieMonster.configuration.key
    assert_equal 'iv', CookieMonster.configuration.iv
  end

  def test_default_cipher_type
    assert_equal 'AES-256-CBC', CookieMonster.configuration.cipher_type
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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