Sha256: 1ed1342454f0a746c615663b554d67b6f0b6f19109ed4635e5ec6a032d423318
Contents?: true
Size: 968 Bytes
Versions: 3
Compression:
Stored size: 968 Bytes
Contents
require 'test_stickler' require 'stickler_test_server' require 'repository/test_api_behavior' module Stickler class AuthenticatedRemoteRepositoryTest < Test include RepositoryApiBehaviorTests attr_reader :repo def setup super @repo_uri = "http://stickler:secret@localhost:6789/" @repo = ::Stickler::Repository::Remote.new( @repo_uri ) @server = SticklerTestServer.new( test_dir , "auth_repo.ru" ) @server.start end def teardown super @server.stop end def test_raising_authentication_denied repo = ::Stickler::Repository::Remote.new( "http://localhost:6789/") assert_raises( ::Stickler::Repository::Error ) do repo.get( @foo_spec ) end end def test_authenticates_a_connection repo.push( @foo_gem_local_path ) data = repo.get( @foo_spec ) sha1 = Digest::SHA1.hexdigest( data ) assert_equal @foo_digest, sha1 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stickler-2.4.2 | test/repository/test_remote_authenticated.rb |
stickler-2.4.1 | test/repository/test_remote_authenticated.rb |
stickler-2.4.0 | test/repository/test_remote_authenticated.rb |