From 101fbdba4c9e586d4ddd94a9d40061383336438d Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Fri, 17 Oct 2014 04:57:36 +0900 Subject: 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. --- railties/lib/rails/generators/testing/behaviour.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib') 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) -- cgit v1.2.3