Permalink
Browse files

Add rack-cache to default Gemfile

  • Loading branch information...
1 parent cbd26a8 commit f4a6f1d3f0d7ec2eb7a779a74f587cb953992ea8 @guilleiguaran guilleiguaran committed Sep 30, 2012
@@ -9,6 +9,10 @@ source 'https://rubygems.org'
<%= assets_gemfile_entry %>
<%= javascript_gemfile_entry %>
+# Puts a simple HTTP cache in front of your app.
+# For large-scale production use, consider using a caching reverse proxy like nginx, varnish, or squid.
+gem 'rack-cache', '~> 1.2'
+
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
@@ -300,6 +300,11 @@ def test_inclusion_of_debugger
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"]))

0 comments on commit f4a6f1d

Please sign in to comment.