Sha256: 9deab85ac79f7fa88afaecea506eca15d0871abc9ea7f993b03a844183b613f8
Contents?: true
Size: 876 Bytes
Versions: 24
Compression:
Stored size: 876 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 < ActiveSupport::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::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
24 entries across 24 versions & 1 rubygems