mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix code example in generator test case
This commit is contained in:
parent
8f25db9067
commit
cf03daa5f5
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ module Rails
|
|||
# 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"
|
||||
# assert_no_migration "db/migrate/create_products.rb"
|
||||
#
|
||||
def assert_no_migration(relative)
|
||||
file_name = migration_file_name(relative)
|
||||
|
@ -182,7 +182,7 @@ module Rails
|
|||
|
||||
# Asserts the given attribute type gets a proper default value:
|
||||
#
|
||||
# assert_field_type :string, "MyString"
|
||||
# assert_field_default_value :string, "MyString"
|
||||
#
|
||||
def assert_field_default_value(attribute_type, value)
|
||||
assert_equal(value, create_generated_attribute(attribute_type).default)
|
||||
|
|
Loading…
Reference in a new issue