aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorKir <shatrov@me.com>2011-12-13 15:06:36 +0400
committerKir <shatrov@me.com>2011-12-17 16:42:35 +0400
commit5e68fed450f6e6c16f308bad0fc270777d1015f3 (patch)
tree3554f49bb44b5cced25b6b0fec94f8206b03a529 /railties/test
parent6bff6439b1960891669485dc978af68dab15af27 (diff)
downloadrails-5e68fed450f6e6c16f308bad0fc270777d1015f3.tar.gz
rails-5e68fed450f6e6c16f308bad0fc270777d1015f3.tar.bz2
rails-5e68fed450f6e6c16f308bad0fc270777d1015f3.zip
Rake tasks generator with test
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/task_generator_test.rb12
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