Sha256: 69f7845cece8e0cc4d29d26c08d6658fb16752d6a0ad6fad7c5bf0ec7a6b308f

Contents?: true

Size: 517 Bytes

Versions: 11

Compression:

Stored size: 517 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class ConfigurationTest < Test::Unit::TestCase
  fixtures :blogs

  def test_booleans
    assert  this_blog.sp_global?
    assert  this_blog.sp_allow_non_ajax_comments?
    assert  this_blog.default_allow_comments?
    assert !this_blog.default_allow_pings?

    assert TrueClass === this_blog.sp_global
    assert String    === this_blog.blog_name
    assert Fixnum    === this_blog.limit_rss_display
  end

  def test_is_ok
    assert this_blog.is_ok?
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typo-3.99.0 test/unit/configuration_test.rb
typo-3.99.3 test/unit/configuration_test.rb
typo-3.99.2 test/unit/configuration_test.rb
typo-3.99.1 test/unit/configuration_test.rb
typo-4.0.1 test/unit/configuration_test.rb
typo-4.0.2 test/unit/configuration_test.rb
typo-3.99.4 test/unit/configuration_test.rb
typo-4.0.0 test/unit/configuration_test.rb
typo-4.1.1 test/unit/configuration_test.rb
typo-4.0.3 test/unit/configuration_test.rb
typo-4.1 test/unit/configuration_test.rb