aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorMarcelo Silveira <marcelo@mhfs.com.br>2012-03-20 21:44:45 -0300
committerMarcelo Silveira <marcelo@mhfs.com.br>2012-03-20 21:44:45 -0300
commitc63306b1a837de370abf905fced2ad5518c43c6f (patch)
treeb4e522555f0e264f0bf719608db99655bb6b0536 /railties/test
parentb49a7ddce18a35a39fd5b3f6003d4a02cbd09b0e (diff)
downloadrails-c63306b1a837de370abf905fced2ad5518c43c6f.tar.gz
rails-c63306b1a837de370abf905fced2ad5518c43c6f.tar.bz2
rails-c63306b1a837de370abf905fced2ad5518c43c6f.zip
Remove blank line from generated migration
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/migration_generator_test.rb1
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 4e08e5dae1..083abc1afa 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