Sha256: 424ba26ed0a0888f9cc0467321e7b4c49e5eae4eb3694e7f08d6a72e0095a12c

Contents?: true

Size: 655 Bytes

Versions: 160

Compression:

Stored size: 655 Bytes

Contents

module Ddr
  module Auth
    module TestHelpers

      class MockLdapGateway
        def self.find(*args); new.find(*args); end
        def find(user_key); Ddr::Auth::LdapGateway::Result.new(nil); end
      end

      class MockGrouperGateway
        def self.repository_groups(*args); new.repository_groups(*args); end
        def repository_groups(raw = false); []; end
        def self.user_groups(*args); new.user_groups(*args); end
        def user_groups(user, raw = false); []; end
      end

    end
  end
end

Ddr::Auth.ldap_gateway = Ddr::Auth::TestHelpers::MockLdapGateway
Ddr::Auth.grouper_gateway = Ddr::Auth::TestHelpers::MockGrouperGateway

Version data entries

160 entries across 160 versions & 2 rubygems

Version Path
ddr-core-1.17.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.16.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.15.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.14.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.13.2 lib/ddr/auth/test_helpers.rb
ddr-core-1.13.1 lib/ddr/auth/test_helpers.rb
ddr-core-1.13.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.12.2 lib/ddr/auth/test_helpers.rb
ddr-core-1.12.1 lib/ddr/auth/test_helpers.rb
ddr-core-1.12.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.11.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.10.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.9.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.8.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.7.0 lib/ddr/auth/test_helpers.rb
ddr-core-1.6.6 lib/ddr/auth/test_helpers.rb
ddr-core-1.6.5 lib/ddr/auth/test_helpers.rb
ddr-core-1.6.4 lib/ddr/auth/test_helpers.rb
ddr-core-1.6.3 lib/ddr/auth/test_helpers.rb
ddr-core-1.6.2 lib/ddr/auth/test_helpers.rb