Sha256: 500ef8dcad523df24fe3058ab6cf4f6d5d51da75c42b1da92e925b0a2507ab47

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

require 'abstract_unit'

class RsaKeyTest < Test::Unit::TestCase
  def setup
    @public_key = OpenSSL::PKey::RSA.new(File.open(File.dirname(__FILE__) + '/keys/encrypted_public') { |f| f.read })
  end

  def test_can_find_max_encoded_length_for_key
    assert_equal 53, @public_key.max_encryptable_length
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
loyal3-sentry-0.5.0 test/rsa_key_test.rb
loyal3-sentry-0.5.2 test/rsa_key_test.rb
shipstar-sentry-0.5.2.1 test/rsa_key_test.rb
stderr-sentry-0.5.4 test/rsa_key_test.rb
sentry-0.5.3 test/rsa_key_test.rb