Report abuse

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

class TypeTest < Test::Unit::TestCase
  fixtures :types

  # Replace this with your real tests.
  def test_create
          example_type = Type.new
          assert !example_type.save
  end

class Type < ActiveRecord::Base
        has_many :attributes
        has_many :bonus
        belongs_to :item

        validates_presence_of :name
        validates_uniqueness_of :name
        validates_associated :attributes
end