diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-27 15:41:29 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-27 21:30:00 +0200 |
commit | 7b6c5ed7dbc2fcbaaf56deacd8061b3da51221e7 (patch) | |
tree | 2ef794a8dd1454b37e3bff4df4c7e1643eeee050 /railties/test | |
parent | ff44e5055cd92ee9c49c315cfffa3b0eb4feb844 (diff) | |
download | rails-7b6c5ed7dbc2fcbaaf56deacd8061b3da51221e7.tar.gz rails-7b6c5ed7dbc2fcbaaf56deacd8061b3da51221e7.tar.bz2 rails-7b6c5ed7dbc2fcbaaf56deacd8061b3da51221e7.zip |
Added parent option to model generator.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/model_generator_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/model_generator_test.rb b/railties/test/generators/model_generator_test.rb index 904f77242d..55c08d0199 100644 --- a/railties/test/generators/model_generator_test.rb +++ b/railties/test/generators/model_generator_test.rb @@ -11,6 +11,11 @@ class ModelGeneratorTest < GeneratorsTestCase assert_file "app/models/account.rb", /class Account < ActiveRecord::Base/ end + def test_orm_with_parent_option + run_generator ["account", "--parent", "Admin::Account"] + assert_file "app/models/account.rb", /class Account < Admin::Account/ + end + def test_invokes_default_test_framework run_generator assert_file "test/unit/account_test.rb", /class AccountTest < ActiveSupport::TestCase/ |