1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #2699 from guilleiguaran/fix-asset-debugging-test-1.8

Fix failing asset debug test under 1.8
This commit is contained in:
Aaron Patterson 2011-08-25 19:12:24 -07:00
commit e3a020a679

View file

@ -40,7 +40,7 @@ module ApplicationTests
# the debug_assets params isn't used if allow_debugging is off
get '/posts?debug_assets=true'
assert_match %r{<script src="/assets/application-([0-z]+)\.js" type="text/javascript"></script>}, last_response.body
assert_not_match %r{<script src="/assets/xmlhr-([0-z]+)\.js" type="text/javascript"></script>}, last_response.body
assert_no_match %r{<script src="/assets/xmlhr-([0-z]+)\.js" type="text/javascript"></script>}, last_response.body
end
test "assets aren't concatened when allow_debugging is on and debug_assets params is true" do