diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-01 21:23:30 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:40 +0200 |
commit | a7c1591315b49e94798d6d51446cbc4139463140 (patch) | |
tree | 983212f5a306d88e8d3ec227bdf7ec0e23d8dcc5 /railties/test/generators | |
parent | 7f7afdf0f11b6748ace1ee48f8d604637058001e (diff) | |
download | rails-a7c1591315b49e94798d6d51446cbc4139463140.tar.gz rails-a7c1591315b49e94798d6d51446cbc4139463140.tar.bz2 rails-a7c1591315b49e94798d6d51446cbc4139463140.zip |
Added stylesheets controller which is invoked by scaffold.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/stylesheets_generator_test.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/railties/test/generators/stylesheets_generator_test.rb b/railties/test/generators/stylesheets_generator_test.rb new file mode 100644 index 0000000000..89bcbc87a3 --- /dev/null +++ b/railties/test/generators/stylesheets_generator_test.rb @@ -0,0 +1,18 @@ +require 'abstract_unit' +require 'generators/generators_test_helper' +require 'generators/rails/stylesheets/stylesheets_generator' + +class StylesheetsGeneratorTest < GeneratorsTestCase + + def test_copy_stylesheets + run_generator + assert_file "public/stylesheets/scaffold.css" + end + + protected + + def run_generator(args=[]) + silence(:stdout) { Rails::Generators::StylesheetsGenerator.start args, :root => destination_root } + end + +end |