Sha256: c3feb5b834183327cc3b7285c3e099612b29f233f1323739897bce99596bcbb3

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

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

class <%= test_class_name %> < Test::Unit::TestCase
 
  def teardown
    migrate
  end

  def test_migration_should_<%= migration_name %>
    drop_all_tables

    migrate :version => <%= previous_schema_version %>

    flunk "TODO: setup test data"

    migrate :version => <%= schema_version %>

    flunk "TODO: examine results"

    migrate :version => <%= previous_schema_version %>

    flunk "TODO: examine results"
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
birdbath-1.3.5 generators/migration_test/templates/migration_test.rb
birdbath-1.3.4 generators/migration_test/templates/migration_test.rb
migration_test_helper-1.3.3 ./generators/migration_test/templates/migration_test.rb