diff options
Diffstat (limited to 'railties/test/rails_generator/rails_model_subclass_generator_test.rb')
-rw-r--r-- | railties/test/rails_generator/rails_model_subclass_generator_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/railties/test/rails_generator/rails_model_subclass_generator_test.rb b/railties/test/rails_generator/rails_model_subclass_generator_test.rb deleted file mode 100644 index 4f20de6eba..0000000000 --- a/railties/test/rails_generator/rails_model_subclass_generator_test.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails_generator/generator_test_helper' - -class RailsModelSubclassGeneratorTest < GeneratorTestCase - - def test_model_subclass_generates_resources - run_generator('model_subclass', %w(Car Product)) - - assert_generated_model_for :car, "Product" - assert_generated_unit_test_for :car - end - - def test_model_subclass_must_have_a_parent_class_name - assert_raise(Rails::Generator::UsageError) { run_generator('model_subclass', %w(Car)) } - end -end |