aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb
blob: e8714b589a749a61e3e1101abb50ddaaa2aec347 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require File.dirname(__FILE__) + '/../test_helper'

class <%= class_name %>Test < Test::Unit::TestCase
  fixtures :<%= table_name %>

  def setup
    @<%= singular_name %> = <%= class_name %>.find(1)
  end

  # Replace this with your real tests.
  def test_truth
    assert_kind_of <%= class_name %>,  @<%= singular_name %>
  end
end