Sha256: db387dff85bf990189e7dae28d53d7291088f7fb1cafd6018d0eded6f1b1dabb

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

require 'test_helper'

class MigrationTest < ActiveSupport::TestCase

  test 'create and drop' do
    ActiveRecord::Migration.verbose = false
    paths = Rails.application.paths['db/migrate'].to_a
    assert_nothing_raised do
      ActiveRecord::Migrator.migrate paths, 0
      ActiveRecord::Migrator.migrate paths, nil
    end
  end

  test 'change' do
    assert_nothing_raised do
      ActiveRecord::Migration.change_view :guitars
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
views-4.0.0.1 test/migration_test.rb
views-4.0.0.0 test/migration_test.rb