instance method
assert_no_migration
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
assert_no_migration(relative)
Asserts a given migration does not exist. You need to supply an absolute path or a path relative to the configured destination:
assert_no_file "config/random.rb"
Parameters
-
relativereq
Source
# File railties/lib/rails/generators/test_case.rb, line 158
def assert_no_migration(relative)
file_name = migration_file_name(relative)
assert_nil file_name, "Expected migration #{relative} to not exist, but found #{file_name}"
end
Defined in railties/lib/rails/generators/test_case.rb line 158
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::TestCase