Sha256: db3b1386d8c329571c984e5a13766b0731816a25cf759f3fcfd171813f48c8b2

Contents?: true

Size: 791 Bytes

Versions: 243

Compression:

Stored size: 791 Bytes

Contents

require 'common'
require 'net/ssh/transport/identity_cipher'

module Transport

  class TestIdentityCipher < Test::Unit::TestCase

    def test_block_size_should_be_8
      assert_equal 8, cipher.block_size
    end

    def test_encrypt_should_return_self
      assert_equal cipher, cipher.encrypt
    end

    def test_decrypt_should_return_self
      assert_equal cipher, cipher.decrypt
    end

    def test_update_should_return_argument
      assert_equal "hello, world", cipher.update("hello, world")
    end

    def test_final_should_return_empty_string
      assert_equal "", cipher.final
    end

    def test_name_should_be_identity
      assert_equal "identity", cipher.name
    end

    private

      def cipher
        Net::SSH::Transport::IdentityCipher
      end

  end

end

Version data entries

243 entries across 203 versions & 28 rubygems

Version Path
savant-echo-1.0.4 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-1.0.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/net-ssh-3.0.2/test/transport/test_identity_cipher.rb
savant-echo-1.0.1 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-1.0.1 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.91 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.91 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.9 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.9 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.6 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.6 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.5 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.5 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.4 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.3 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
savant-echo-0.1.3 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/transport/test_identity_cipher.rb
net-ssh-3.3.0.beta1 test/transport/test_identity_cipher.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/net-ssh-3.0.2/test/transport/test_identity_cipher.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/net-ssh-3.0.2/test/transport/test_identity_cipher.rb