diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2011-12-17 14:05:26 -0800 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2011-12-17 14:05:26 -0800 |
commit | fe72f7d8c581bcf2aaec972754dad8a3a4996f08 (patch) | |
tree | 9fbf5db7c2d2174ebdd92144294788e24af39546 /railties/test/generators/task_generator_test.rb | |
parent | d2951eb089f3902746da578ca27d73833cd5a03b (diff) | |
parent | 5e68fed450f6e6c16f308bad0fc270777d1015f3 (diff) | |
download | rails-fe72f7d8c581bcf2aaec972754dad8a3a4996f08.tar.gz rails-fe72f7d8c581bcf2aaec972754dad8a3a4996f08.tar.bz2 rails-fe72f7d8c581bcf2aaec972754dad8a3a4996f08.zip |
Merge pull request #4009 from kirs/generate-rake-task
Rake tasks generator
Diffstat (limited to 'railties/test/generators/task_generator_test.rb')
-rw-r--r-- | railties/test/generators/task_generator_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/test/generators/task_generator_test.rb b/railties/test/generators/task_generator_test.rb new file mode 100644 index 0000000000..f810a21d1e --- /dev/null +++ b/railties/test/generators/task_generator_test.rb @@ -0,0 +1,12 @@ +require 'generators/generators_test_helper' +require 'rails/generators/rails/task/task_generator' + +class TaskGeneratorTest < Rails::Generators::TestCase + include GeneratorsTestHelper + arguments %w(feeds foo bar) + + def test_controller_skeleton_is_created + run_generator + assert_file "lib/tasks/feeds.rake", /namespace :feeds/ + end +end |