Sha256: 80dc6921b46611b8120e7a350a0b5161418cd9ca477601b072bd4285ffc3aa2a

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

require "ezid-client"

module Ezid
  module TestHelper

    TEST_ARK_SHOULDER = "ark:/99999/fk4"
    TEST_DOI_SHOULDER = "doi:10.5072/FK2"
    TEST_USER = "apitest"

    def ezid_test_mode!
      Ezid::Client.configure do |config|
        config.user = TEST_USER
        # Contact EZID for password
        # config.password = "********"
        config.logger = Logger.new(File::NULL)
        config.default_shoulder = TEST_ARK_SHOULDER
      end
    end

  end
end

include Ezid::TestHelper

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ezid-client-0.7.0 lib/ezid/test_helper.rb