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.
This commit is contained in:
parent
ee787d9f58
commit
101fbdba4c
@ -50,7 +50,7 @@ def destination(path)
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user