Sha256: c5a73f14b2e59a4b468929fee7ef5f51f8eba3000c4598ea81d00226d2fe18dd

Contents?: true

Size: 1.06 KB

Versions: 13

Compression:

Stored size: 1.06 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 MicroCMS', config.cms_title
    assert_equal 'ComfortableMexicanSofa::HttpAuth', config.authentication
    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'}), config.locales
    assert_equal nil, config.admin_locale
  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

13 entries across 13 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.4.3 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.4.2 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.4.1 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.4.0 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.8 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.7 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.6 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.5 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.4 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.3 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.2 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.1 test/unit/configuration_test.rb
comfortable_mexican_sofa-1.3.0 test/unit/configuration_test.rb