aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-07-25 06:52:40 -0700
committerJosé Valim <jose.valim@gmail.com>2011-07-25 06:52:40 -0700
commit14c0f0ee12f87970744e8373b996cb64d7ed37f7 (patch)
treec0b54c70caf0dd9cc121bf6cb21881747d888bec
parent451f63b42e411a57796baccca7d27b5746bff49b (diff)
parent3348ea625434c95e1b3414a61cd3901e9c8fb818 (diff)
downloadrails-14c0f0ee12f87970744e8373b996cb64d7ed37f7.tar.gz
rails-14c0f0ee12f87970744e8373b996cb64d7ed37f7.tar.bz2
rails-14c0f0ee12f87970744e8373b996cb64d7ed37f7.zip
Merge pull request #2254 from dmathieu/test_name
provide more explicit test names
-rw-r--r--railties/test/application/assets_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb
index 810d51b50c..7fb930bd99 100644
--- a/railties/test/application/assets_test.rb
+++ b/railties/test/application/assets_test.rb
@@ -46,7 +46,7 @@ module ApplicationTests
assert defined?(Uglifier)
end
- test "assets are compiled properly" do
+ test "precompile creates the file and gives it the original asset's content" do
app_file "app/assets/javascripts/application.js", "alert();"
app_file "app/assets/javascripts/foo/application.js", "alert();"
@@ -61,7 +61,7 @@ module ApplicationTests
end
end
- test "precompile properly performs caching" do
+ test "precompile appends the md5 hash to files referenced with asset_path" do
app_file "app/assets/stylesheets/application.css.erb", "<%= asset_path('rails.png') %>"
capture(:stdout) do