Sha256: 034f804a9fe5f61d6e46a01d969d0b175255b5d18d9649ea5c65cec29a724bec

Contents?: true

Size: 334 Bytes

Versions: 12

Compression:

Stored size: 334 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
rails-0.11.1 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.10.0 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.10.1 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.12.0 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.11.0 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.14.1 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.12.1 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.14.2 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.13.0 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails-0.13.1 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails_product-0.6 lib/rails_generator/generators/components/model/templates/unit_test.rb
rails_product-0.5 lib/rails_generator/generators/components/model/templates/unit_test.rb