Sha256: 07908147192c8c3f119398a1033cca885508e66536b32ca1db604e025bcdc208
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
module Teabag::SpecHelper def javascript_include_tag_for_teabag(*sources) sources.collect do |source| asset = asset_paths.asset_for(source, "js") asset.to_a.map do |dep| javascript_include_tag(dep.pathname.to_s, src: path_to_asset(dep, ext: "js", body: true), debug: false) end end.flatten.uniq.join("\n").html_safe end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.4.6 | app/helpers/teabag/spec_helper.rb |