Sha256: df632e2a2260a103cf2f45922be482f515cc2673963439d894375646ef9931cb

Contents?: true

Size: 419 Bytes

Versions: 41

Compression:

Stored size: 419 Bytes

Contents

require 'test/helper'

class TypusTest < ActiveSupport::TestCase

  def test_should_verify_models
    models = [ Category, Comment, Post, TypusUser ]
    models.each { |m| assert m.superclass.equal?(ActiveRecord::Base) }
  end

  def test_should_verify_fixtures_are_loaded
    assert_equal 3, Category.count
    assert_equal 4, Comment.count
    assert_equal 4, Post.count
    assert_equal 5, TypusUser.count
  end

end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fesplugas-typus-0.9.0 test/unit/typus_test.rb
fesplugas-typus-0.9.1 test/unit/typus_test.rb
fesplugas-typus-0.9.10 test/unit/typus_test.rb
fesplugas-typus-0.9.11 test/unit/typus_test.rb
fesplugas-typus-0.9.12 test/unit/typus_test.rb
fesplugas-typus-0.9.13 test/unit/typus_test.rb
fesplugas-typus-0.9.14 test/unit/typus_test.rb
fesplugas-typus-0.9.15 test/unit/typus_test.rb
fesplugas-typus-0.9.16 test/unit/typus_test.rb
fesplugas-typus-0.9.17 test/unit/typus_test.rb
fesplugas-typus-0.9.2 test/unit/typus_test.rb
fesplugas-typus-0.9.3 test/unit/typus_test.rb
fesplugas-typus-0.9.4 test/unit/typus_test.rb
fesplugas-typus-0.9.5 test/unit/typus_test.rb
fesplugas-typus-0.9.6 test/unit/typus_test.rb
fesplugas-typus-0.9.7 test/unit/typus_test.rb
fesplugas-typus-0.9.8 test/unit/typus_test.rb
fesplugas-typus-0.9.9 test/unit/typus_test.rb
typus-0.9.39 test/unit/typus_test.rb
typus-0.9.38 test/unit/typus_test.rb