Sha256: 27b0780a22fd7b021e03a2d7de2891898a1a00becbef76e4fa63cce12302d99c
Contents?: true
Size: 1.32 KB
Versions: 5
Compression:
Stored size: 1.32 KB
Contents
# encoding: utf-8 require File.expand_path('../test_helper', File.dirname(__FILE__)) class ConfigurationTest < ActiveSupport::TestCase def test_configuration_presense assert config = ComfortableMexicanSofa.configuration assert_equal 'ComfortableMexicanSofa CMS Engine', config.cms_title assert_equal 'ComfortableMexicanSofa::HttpAuth', config.admin_auth assert_equal 'ComfortableMexicanSofa::DummyAuth', config.public_auth assert_equal 'cms-admin', config.admin_route_prefix assert_equal '', config.admin_route_redirect assert_equal false, config.allow_irb assert_equal false, config.enable_fixtures assert_equal File.expand_path('db/cms_fixtures', Rails.root), config.fixtures_path assert_equal 25, config.revisions_limit assert_equal ({ 'en' => 'English', 'es' => 'Español', 'pt-BR' => 'Português Brasileiro', 'zh-CN' => '简体中文' }), config.locales assert_equal nil, config.admin_locale assert_equal nil, config.database_config assert_equal ({}), config.upload_file_options end def test_initialization_overrides ComfortableMexicanSofa.configuration.cms_title = 'New Title' assert_equal 'New Title', ComfortableMexicanSofa.configuration.cms_title end def test_version assert ComfortableMexicanSofa::VERSION end end
Version data entries
5 entries across 5 versions & 1 rubygems