提交 14c0f0ee 编写于 作者: J José Valim

Merge pull request #2254 from dmathieu/test_name

provide more explicit test names
...@@ -46,7 +46,7 @@ def app ...@@ -46,7 +46,7 @@ def app
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 @@ def app ...@@ -61,7 +61,7 @@ def app
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册