mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
provide more explicit test names
This commit is contained in:
parent
451f63b42e
commit
3348ea6254
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ module ApplicationTests
|
||||||
assert defined?(Uglifier)
|
assert defined?(Uglifier)
|
||||||
end
|
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/application.js", "alert();"
|
||||||
app_file "app/assets/javascripts/foo/application.js", "alert();"
|
app_file "app/assets/javascripts/foo/application.js", "alert();"
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ module ApplicationTests
|
||||||
end
|
end
|
||||||
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') %>"
|
app_file "app/assets/stylesheets/application.css.erb", "<%= asset_path('rails.png') %>"
|
||||||
|
|
||||||
capture(:stdout) do
|
capture(:stdout) do
|
||||||
|
|
Loading…
Reference in a new issue