Sha256: a2ebe73da4ed9393ab0be403ce9fd67651092044e1c092eaecccce715cc12a61

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper.rb')

class SspiContextTest < Test::Unit::TestCase

if defined? Net::SSH::Kerberos::SSPI::Context

  def setup
    @gss = Net::SSH::Kerberos::SSPI::Context.new 
  end

  def teardown
    @gss.dispose
  end

  def test_create
    @gss.create ENV['USER'], Socket.gethostbyname('localhost')[0]
    assert @gss.credentials?, "Should have acquired credentials"
  end

else
  $stderr.puts "Skipping SSPI tests on this platform: Windows SSPI was not loaded."

  def test_nothing; assert true end
end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
net-ssh-kerberos-0.1.3 test/sspi_context_test.rb