Sha256: 4ad66dd12ec7f5ad69ba71b568a262f3f0182e05a82668a20a5d9423c11fa98c

Contents?: true

Size: 998 Bytes

Versions: 1

Compression:

Stored size: 998 Bytes

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 '/cms-admin/pages', config.admin_route_redirect
    assert_equal false, config.enable_multiple_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
  end
  
  def test_initialization_overrides
    ComfortableMexicanSofa.configuration.cms_title = 'New Title'
    assert_equal 'New Title', ComfortableMexicanSofa.configuration.cms_title
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.1.2 test/unit/configuration_test.rb