Sha256: d6787d31afe9282bfb98c09bb7218909772d6ab121aa2ed26bc0f6dc0b074590

Contents?: true

Size: 668 Bytes

Versions: 4

Compression:

Stored size: 668 Bytes

Contents

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

class ConfigurationTest < ActiveSupport::TestCase
  
  def test_configuration_presense
    assert config = ComfyGallery.configuration
    assert_equal ({}),                        config.upload_options
    assert_equal 'admin',                     config.admin_route_prefix
    assert_equal 'ApplicationController',     config.admin_controller
    assert_equal 'ComfyGallery::FormBuilder',  config.form_builder
  end
  
  def test_initialization_overrides
    ComfyGallery.configuration.admin_route_prefix = 'admin'
    assert_equal 'admin', ComfyGallery.configuration.admin_route_prefix
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comfy_gallery-0.1.3 test/unit/configuration_test.rb
comfy_gallery-0.1.2 test/unit/configuration_test.rb
comfy_gallery-0.1.1 test/unit/configuration_test.rb
comfy_gallery-0.1.0 test/unit/configuration_test.rb