diff options
author | Marcelo Silveira <marcelo@mhfs.com.br> | 2012-03-20 22:06:42 -0300 |
---|---|---|
committer | Marcelo Silveira <marcelo@mhfs.com.br> | 2012-03-20 22:07:09 -0300 |
commit | 57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84 (patch) | |
tree | cee3f52c4ccf0e9f7e0bc012968bfe3a53b63480 /railties/test/generators | |
parent | 275ee0dc7b836fb10aa8af1c0339e81539c1dec1 (diff) | |
download | rails-57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84.tar.gz rails-57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84.tar.bz2 rails-57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84.zip |
[3-2-stable] Remove blank line from generated migration
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/migration_generator_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/generators/migration_generator_test.rb b/railties/test/generators/migration_generator_test.rb index 3f4e160988..8d49faacf1 100644 --- a/railties/test/generators/migration_generator_test.rb +++ b/railties/test/generators/migration_generator_test.rb @@ -37,6 +37,7 @@ class MigrationGeneratorTest < Rails::Generators::TestCase assert_method :change, content do |up| assert_match(/add_column :posts, :title, :string/, up) assert_match(/add_column :posts, :body, :text/, up) + assert_no_match(/\n\n/, up) end end end |