diff options
author | Ryunosuke SATO <tricknotes.rs@gmail.com> | 2014-10-17 04:57:36 +0900 |
---|---|---|
committer | Ryunosuke SATO <tricknotes.rs@gmail.com> | 2014-10-17 04:57:36 +0900 |
commit | 101fbdba4c9e586d4ddd94a9d40061383336438d (patch) | |
tree | d9506e24f171215853c5e8305cdc4a2bee40f977 /railties/lib/rails/generators | |
parent | ee787d9f581f52c72a701be9fef054903ee5b8c6 (diff) | |
download | rails-101fbdba4c9e586d4ddd94a9d40061383336438d.tar.gz rails-101fbdba4c9e586d4ddd94a9d40061383336438d.tar.bz2 rails-101fbdba4c9e586d4ddd94a9d40061383336438d.zip |
Fix example code for `Rails::Generators::Testing::Behaviour` [ci skip]
`cleanup_destination_root` method is not found anywhere.
Instead, `prepare_destination` clean up distination root on setup.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/testing/behaviour.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/testing/behaviour.rb b/railties/lib/rails/generators/testing/behaviour.rb index e0600d0b59..fd2ea274e1 100644 --- a/railties/lib/rails/generators/testing/behaviour.rb +++ b/railties/lib/rails/generators/testing/behaviour.rb @@ -50,7 +50,7 @@ module Rails # class AppGeneratorTest < Rails::Generators::TestCase # tests AppGenerator # destination File.expand_path("../tmp", File.dirname(__FILE__)) - # teardown :cleanup_destination_root + # setup :prepare_destination # # test "database.yml is not created when skipping Active Record" do # run_generator %w(myapp --skip-active-record) |