Sha256: 59cf36b2d9ccaabcb88e26e5b9bc3474a93619e7a01b337f13716eda2c4c72f0

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

require_relative '../test_helper'

class ConfigurationTest < ActiveSupport::TestCase

  def test_configuration
    assert config = ComfyBlog.configuration
    assert_equal 10,    config.posts_per_page
    assert_equal false, config.auto_publish_comments
    assert_equal nil,   config.default_author
  end

  def test_initialization_overrides
    ComfyBlog.config.posts_per_page = 5
    assert_equal 5, ComfyBlog.config.posts_per_page
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comfy_blog-1.12.3 test/lib/configuration_test.rb
comfy_blog-1.12.2 test/lib/configuration_test.rb
comfy_blog-1.12.1 test/lib/configuration_test.rb
comfy_blog-1.12.0 test/lib/configuration_test.rb