Sha256: ff6fdb0d7981352c18811bd7549e260cecf58214a86839c3c6ae39898a51aaf7
Contents?: true
Size: 898 Bytes
Versions: 9
Compression:
Stored size: 898 Bytes
Contents
require 'test_helper' class ConfigTest < Test::Unit::TestCase def test_config reset_aleph_configuration Exlibris::Aleph.configure do |config| config.base_url = "test_url" config.adms = ["ADM1", "ADM2"] end assert_equal "test_url", Exlibris::Aleph::Config.base_url assert_equal "test_url:1891/rest-dlf", Exlibris::Aleph::Record.new.rest_url assert_equal ["ADM1", "ADM2"], Exlibris::Aleph::Config.adms reset_aleph_configuration end def test_config_from_yaml reset_aleph_configuration yaml_aleph_configuration assert_equal "http://aleph.library.nyu.edu", Exlibris::Aleph::Config.base_url assert_equal "http://aleph.library.nyu.edu:1891/rest-dlf", Exlibris::Aleph::Record.new.rest_url assert_equal ["NYU50", "NYU51"], Exlibris::Aleph::Config.adms assert_nil(Exlibris::Aleph::Config.tab_path) reset_aleph_configuration end end
Version data entries
9 entries across 9 versions & 1 rubygems