Sha256: d60e9d769bb871c5711beaf54760e4780a3813bd935e7b36d126a2d85e5d3cc8

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 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"
    TEST_HOST = Configuration::HOST

    def ezid_test_mode!
      Ezid::Client.configure do |config|
        config.user = TEST_USER
        # Contact EZID for password, or use your own user name and password
        # config.password = "********"
        config.host = TEST_HOST
        config.use_ssl = true
        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.8.0 lib/ezid/test_helper.rb