Permalink
Browse files

Merge pull request #2254 from dmathieu/test_name

provide more explicit test names
  • Loading branch information...
2 parents 451f63b + 3348ea6 commit 14c0f0ee12f87970744e8373b996cb64d7ed37f7 @josevalim josevalim committed Jul 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/application/assets_test.rb
@@ -46,7 +46,7 @@ def app
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 @@ def app
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

0 comments on commit 14c0f0e

Please sign in to comment.