diff options
author | Prem Sichanugrist <s@sikachu.com> | 2011-01-01 01:19:56 +0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-04 11:16:52 -0800 |
commit | ad343d7263d0922bbe32f550e7057d55f2c4d311 (patch) | |
tree | da25cb79802b85e949b731f293a97eed8d5c5b57 /railties/test/generators | |
parent | 9e64dfad0df4ed8a10d2ad2a17cd0848017d652c (diff) | |
download | rails-ad343d7263d0922bbe32f550e7057d55f2c4d311.tar.gz rails-ad343d7263d0922bbe32f550e7057d55f2c4d311.tar.bz2 rails-ad343d7263d0922bbe32f550e7057d55f2c4d311.zip |
Use Rails 3.1 `change` method in 'add_' migration generator
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/migration_generator_test.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/railties/test/generators/migration_generator_test.rb b/railties/test/generators/migration_generator_test.rb index 288ec30460..6eecfc8e2e 100644 --- a/railties/test/generators/migration_generator_test.rb +++ b/railties/test/generators/migration_generator_test.rb @@ -34,15 +34,10 @@ class MigrationGeneratorTest < Rails::Generators::TestCase run_generator [migration, "title:string", "body:text"] assert_migration "db/migrate/#{migration}.rb" do |content| - assert_method :up, content do |up| + assert_method :change, content do |up| assert_match /add_column :posts, :title, :string/, up assert_match /add_column :posts, :body, :text/, up end - - assert_method :down, content do |down| - assert_match /remove_column :posts, :title/, down - assert_match /remove_column :posts, :body/, down - end end end |