aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-10-01 19:52:52 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-10-01 19:52:52 -0700
commit037e50ec39c7c3d58a102a6584e2740652420d1d (patch)
tree17dfc52c9192db2cf6b79a77df7a15260527fa4c /railties/test/generators
parentf934aecf61cd2c5df8a598fbddc83516f92d96c0 (diff)
parentf4a6f1d3f0d7ec2eb7a779a74f587cb953992ea8 (diff)
downloadrails-037e50ec39c7c3d58a102a6584e2740652420d1d.tar.gz
rails-037e50ec39c7c3d58a102a6584e2740652420d1d.tar.bz2
rails-037e50ec39c7c3d58a102a6584e2740652420d1d.zip
Merge pull request #7794 from guilleiguaran/extract-rack-cache
Use Rack::Cache middleware only if is in Gemfile
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/app_generator_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 856a0e163b..7a646626c6 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -300,6 +300,11 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_file "Gemfile", /# gem 'debugger'/
end
+ def test_inclusion_of_rack_cache
+ run_generator
+ assert_file "Gemfile", /gem 'rack-cache'/
+ end
+
def test_template_from_dir_pwd
FileUtils.cd(Rails.root)
assert_match(/It works from file!/, run_generator([destination_root, "-m", "lib/template.rb"]))