Sha256: 8736805f839cffcfc22acde9d9af5e52a6f14fbd3d97cc5c79e34a6b4f063349

Contents?: true

Size: 259 Bytes

Versions: 12

Compression:

Stored size: 259 Bytes

Contents

require "test_helper"

<% module_namespacing do -%>
class <%= class_name %>Test < ActiveSupport::TestCase

  def <%= file_name %>
    @<%= file_name %> ||= <%= class_name %>.new
  end

  def test_valid
    assert <%= file_name %>.valid?
  end

end
<% end -%>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
minitest-rails-2.1.1 lib/generators/minitest/model/templates/model_test.rb
minitest-rails-2.1.0 lib/generators/minitest/model/templates/model_test.rb
minitest-rails-2.0.3 lib/generators/minitest/model/templates/model_test.rb
minitest-rails-2.0.2 lib/generators/minitest/model/templates/model_test.rb
minitest-rails-2.0.1 lib/generators/minitest/model/templates/model_test.rb
minitest-rails-2.0.0 lib/generators/minitest/model/templates/model_test.rb
minitest-rails-1.0.1 lib/generators/mini_test/model/templates/model_test.rb
minitest-rails-2.0.0.beta1 lib/generators/minitest/model/templates/model_test.rb
minitest-rails-1.0.0 lib/generators/mini_test/model/templates/model_test.rb
minitest-rails-1.0.0.beta3 lib/generators/mini_test/model/templates/model_test.rb
minitest-rails-1.0.0.beta2 lib/generators/mini_test/model/templates/model_test.rb
minitest-rails-1.0.0.beta1 lib/generators/mini_test/model/templates/model_test.rb