Sha256: cc1e825e72847b38f6a40d9b1720e90e12bafffd3737e26e868aacdf2841c031

Contents?: true

Size: 467 Bytes

Versions: 4

Compression:

Stored size: 467 Bytes

Contents

require 'test_helper'

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

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

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

  def test_iv_not_the_same
    assert_not_equal CookieMonster.configuration.iv, CookieMonster.configuration.iv
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cookie_monster-0.1.5 test/test_cookie_monster.rb
cookie_monster-0.1.4 test/test_cookie_monster.rb
cookie_monster-0.1.3 test/test_cookie_monster.rb
cookie_monster-0.1.2 test/test_cookie_monster.rb