Sha256: a59f9b5347a4c785132a46ff7de0b83e5a8350a70d4018e865ca5c7d0a268bf7

Contents?: true

Size: 714 Bytes

Versions: 8

Compression:

Stored size: 714 Bytes

Contents

require File.expand_path('../test_helper', File.dirname(__FILE__))

class CmsConfigurationTest < ActiveSupport::TestCase
  
  def test_configuration_presense
    assert config = ComfortableMexicanSofa.configuration
    assert_equal 'ComfortableMexicanSofa', config.cms_title
    assert_equal 'ComfortableMexicanSofa::HttpAuth', config.authentication
    assert_equal nil, config.seed_data_path
    assert_equal 'cms-admin', config.admin_route_prefix
    assert_equal '/cms-admin/pages', config.admin_route_redirect
  end
  
  def test_initialization_overrides
    ComfortableMexicanSofa.configuration.cms_title = 'New Title'
    assert_equal 'New Title', ComfortableMexicanSofa.configuration.cms_title
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.41 test/unit/cms_configuration_test.rb
comfortable_mexican_sofa-1.0.40 test/unit/cms_configuration_test.rb
comfortable_mexican_sofa-1.0.39 test/unit/cms_configuration_test.rb
comfortable_mexican_sofa-1.0.38 test/unit/cms_configuration_test.rb
comfortable_mexican_sofa-1.0.37 test/unit/cms_configuration_test.rb
comfortable_mexican_sofa-1.0.36 test/unit/cms_configuration_test.rb
comfortable_mexican_sofa-1.0.35 test/unit/cms_configuration_test.rb
comfortable_mexican_sofa-1.0.34 test/unit/cms_configuration_test.rb