Flowdock
method

assert_migration

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Rails::Generators::TestCase

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

These similar methods exist in v6.1.7.7:

assert_migration(relative, *contents, &block) public

Asserts a given migration exists. You need to supply an absolute path or a path relative to the configured destination:

assert_migration "db/migrate/create_products.rb"

This method manipulates the given path and tries to find any migration which matches the migration name. For example, the call above is converted to:

assert_file "db/migrate/003_create_products.rb"

Consequently, assert_migration accepts the same arguments has assert_file.

Show source
Register or log in to add new notes.