Sha256: db62432152131c6be81ff5e785b07bb9e08553c72df7679dfca58e454469a447

Contents?: true

Size: 349 Bytes

Versions: 7

Compression:

Stored size: 349 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))
      end
    end.flatten.uniq.join("\n").html_safe
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
teabag-0.4.5 app/helpers/teabag/spec_helper.rb
teabag-0.4.4 app/helpers/teabag/spec_helper.rb
teabag-0.4.3 app/helpers/teabag/spec_helper.rb
teabag-0.4.2 app/helpers/teabag/spec_helper.rb
teabag-0.4.1 app/helpers/teabag/spec_helper.rb
teabag-0.4.0 app/helpers/teabag/spec_helper.rb
teabag-0.3.6 app/helpers/teabag/spec_helper.rb