Something like this? https://github.com/phoet/rails/blob/use_file_join/actionview/test/template/asset_tag_helper_test.rb#L367