diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-02 15:55:21 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 15:55:21 +0200 |
commit | 528d555e378e9900ffda40c8ff3627e0609a048c (patch) | |
tree | 4f00ff742efbbe1fd732cdea57c9556467fc817d /railties/test | |
parent | a08a8cd8d24dd1a8342e0fd133c5e8ed09e1f56d (diff) | |
download | rails-528d555e378e9900ffda40c8ff3627e0609a048c.tar.gz rails-528d555e378e9900ffda40c8ff3627e0609a048c.tar.bz2 rails-528d555e378e9900ffda40c8ff3627e0609a048c.zip |
Make invoke output white and use padding.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/scaffold_generator_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/scaffold_generator_test.rb b/railties/test/generators/scaffold_generator_test.rb index 85c039a9cb..dfa11fd84b 100644 --- a/railties/test/generators/scaffold_generator_test.rb +++ b/railties/test/generators/scaffold_generator_test.rb @@ -131,6 +131,12 @@ class ScaffoldGeneratorTest < GeneratorsTestCase assert_file "public/stylesheets/scaffold.css" end + def test_invoke_output + output = run_generator + assert_match /invoke.{4} active_record/, output + assert_match /create.{4} app\/models\/product_line\.rb/, output + end + protected def run_generator(config={}) |