Sha256: 861a3ae7fb9740a08c4e33475f913353a4429a80d36d8ab8d7f3b130da4aa886
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
require File.expand_path('../test_helper', File.dirname(__FILE__)) class ConfigurationTest < ActiveSupport::TestCase def test_configuration_presense assert config = ComfortableMexicanSofa.configuration assert_equal 'ComfortableMexicanSofa MicroCMS', config.cms_title assert_equal 'ComfortableMexicanSofa::HttpAuth', config.authentication assert_equal 'cms-admin', config.admin_route_prefix assert_equal '', config.content_route_prefix assert_equal 'pages', config.admin_route_redirect assert_equal false, config.enable_multiple_sites assert_equal false, config.enable_mirror_sites assert_equal false, config.allow_irb assert_equal true, config.enable_caching 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 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