Sha256: 9cf498546eba0b6eb89343df4bf7c214284eab0d22af535d785c0c97a09c7533

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

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

class ConfigurationTest < ActiveSupport::TestCase
  
  def test_configuration
    assert config = ComfyBlog.configuration
    assert_equal 'admin',                             config.admin_route_prefix
    assert_equal '',                                  config.public_route_prefix
    assert_equal 'ApplicationController',             config.admin_controller
    assert_equal 'ActionView::Helpers::FormBuilder',  config.form_builder
    assert_equal 10,                                  config.posts_per_page
  end
  
  def test_initialization_overrides
    ComfyBlog.config.admin_route_prefix = 'new-admin'
    assert_equal 'new-admin', ComfyBlog.config.admin_route_prefix
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfy_blog-0.0.0 test/unit/configuration_test.rb