aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-10-23 20:56:02 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-11-02 17:14:51 +0100
commitfdbd9df21e0063da4b34346c54fbe21ac9583ca6 (patch)
tree030031e0e79e2ab08537dd5a771569a88f64e4c0 /railties/test
parentd995953869ca09906af8f5c5058d47cb66bc2467 (diff)
downloadrails-fdbd9df21e0063da4b34346c54fbe21ac9583ca6.tar.gz
rails-fdbd9df21e0063da4b34346c54fbe21ac9583ca6.tar.bz2
rails-fdbd9df21e0063da4b34346c54fbe21ac9583ca6.zip
No need for say_step in 'plugin new' generator
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/plugin_new_generator_test.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb
index 2049d31b18..bf395749e5 100644
--- a/railties/test/generators/plugin_new_generator_test.rb
+++ b/railties/test/generators/plugin_new_generator_test.rb
@@ -45,10 +45,9 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
assert_file "test/bukkits_test.rb", /assert_kind_of Module, Bukkits/
end
- def test_ensure_that_plugin_options_are_not_passed_app_generator
- output = run_generator [destination_root, "--skip_gemfile"]
- assert_no_file "Gemfile"
- assert_match /STEP 2.*create Gemfile/m, output
+ def test_ensure_that_plugin_options_are_not_passed_to_app_generator
+ FileUtils.cd(Rails.root)
+ assert_no_match /It works from file!.*It works_from_file/, run_generator([destination_root, "-m", "lib/template.rb"])
end
def test_template_from_dir_pwd