Sha256: 21132993e4b8700fb8c2b48a36619c2ff25310d624c88560e7ef5aa86b5829f8

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 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_configured
    assert this_blog.configured?
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typo-5.0.2 test/unit/configuration_test.rb
typo-5.0.1 test/unit/configuration_test.rb
typo-5.0 test/unit/configuration_test.rb