diff --git a/test/fixtures/stylesheets/image_urls/config.rb b/test/fixtures/stylesheets/image_urls/config.rb index c3381dac..bcdae437 100644 --- a/test/fixtures/stylesheets/image_urls/config.rb +++ b/test/fixtures/stylesheets/image_urls/config.rb @@ -7,11 +7,13 @@ output_style = :compact # To enable relative image paths using the images_url() function: # http_images_path = :relative http_images_path = "/images" +line_comments = false asset_cache_buster do |path, file| "busted=true" end + asset_host do |path| - "http://assets%d.example.com" % (path.hash % 4) + "http://assets%d.example.com" % (path.size % 4) end diff --git a/test/fixtures/stylesheets/image_urls/css/screen.css b/test/fixtures/stylesheets/image_urls/css/screen.css index c7de0c65..9609ab2c 100644 --- a/test/fixtures/stylesheets/image_urls/css/screen.css +++ b/test/fixtures/stylesheets/image_urls/css/screen.css @@ -1,3 +1,3 @@ -.showgrid { background-image: url('http://assets2.example.com/images/grid.png?busted=true'); } +.showgrid { background-image: url('http://assets0.example.com/images/grid.png?busted=true'); } .inlinegrid { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAUEAYAAACv1qP4AAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAZ0lEQVRYw+3QwQ2AIBAFUTEUwI3+uzN7gDscsIgxEuO8An52J11X73OudfxMraXkzHfO3Y98nQEhA0IGhAwIGRAyIGRAyICQASEDQgaEDAgZEDIgZEDIgJABoZzSGK3tPuN9ERFP7Nw4fg+c5g8V1wAAAABJRU5ErkJggg=='); }