diff options
author | Prem Sichanugrist <s@sikachu.com> | 2012-04-09 09:48:30 -0400 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-12 21:48:22 +0530 |
commit | c0e6a85a569fa5e0724adc734be1cbd5c5545b55 (patch) | |
tree | 2b7d774cbc650e886077e1fac3ec5e86c07e31e8 /railties/lib/rails | |
parent | e473e1f213db67adf67669030e8369596f898b5a (diff) | |
download | rails-c0e6a85a569fa5e0724adc734be1cbd5c5545b55.tar.gz rails-c0e6a85a569fa5e0724adc734be1cbd5c5545b55.tar.bz2 rails-c0e6a85a569fa5e0724adc734be1cbd5c5545b55.zip |
Fix code example in generator test case
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/test_case.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/test_case.rb b/railties/lib/rails/generators/test_case.rb index d81c4c3e1d..2cb34fab7a 100644 --- a/railties/lib/rails/generators/test_case.rb +++ b/railties/lib/rails/generators/test_case.rb @@ -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) |