class TestCatalogFactory

Public Instance Methods

test_all() click to toggle source
# File vendor/qwik/lib/qwik/catalog-factory.rb, line 71
def test_all
  cf = Qwik::CatalogFactory.new

  # test_get_files
  t_make_public(Qwik::CatalogFactory, :get_files)
  files = cf.get_files('.', 'catalog-??.rb')
  assert 0 < files.length

  # test_load_all_files
  t_make_public(Qwik::CatalogFactory, :load_all_files)
  catalogs = cf.load_all_files(['catalog-ja.rb'])
  assert 0 < catalogs.length

  # test_load_all_here
  cf.load_all_here('catalog-??.rb')

  catalog_ja = cf.get_catalog('ja')
  assert_equal true, catalog_ja != nil
end