Sha256: e3fd0760cc0520b399557c207f0df6f21ad63b8b7746168e2d42bd3f233ee6a7
Contents?: true
Size: 937 Bytes
Versions: 3
Compression:
Stored size: 937 Bytes
Contents
require 'test/unit' # Load the helper class require File.join(File.dirname(__FILE__), '..', 'test_helper') module TaliaCore # Just test if the initializer has works correctly. These tests will fail if you # don't use the configuration file supplied with Talia class InitializerTest < Test::Unit::TestCase fixtures :active_sources # Test it def test_initialized assert(TaliaCore::Initializer.initialized) end # Test namespaces def test_namespaces assert(N::LOCAL.to_s, "http://localnode.org/") assert_equal(N::DEFAULT.to_s, "http://default.talia.eu/") assert_equal(N::FOO.to_s, "http://foo.com/") assert_kind_of(N::Namespace, N::FOO) end # Test the datase connection def test_db_connection assert(Source.exists?(N::LOCAL.something)) end def test_core_ext_loading assert 'string'.respond_to?(:to_permalink) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.4.2 | test/talia_core/initializer_test.rb |
talia_core-0.4.1 | test/talia_core/initializer_test.rb |
talia_core-0.4.0 | test/talia_core/initializer_test.rb |