Permalink
Browse files

Fix code example in generator test case

  • Loading branch information...
1 parent 8f25db9 commit cf03daa5f509e48cf03897163471f3064cf2f5eb @sikachu sikachu committed Apr 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/generators/test_case.rb
@@ -135,7 +135,7 @@ def assert_migration(relative, *contents, &block)
# 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 @@ def assert_field_type(attribute_type, field_type)
# 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)

0 comments on commit cf03daa

Please sign in to comment.