Sha256: 202ab26811abbdb1bafa61bf677d7e895ab7d06791eba1c12d47bc65b0199e00

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

module Konacha
  module SpecsHelper
    def spec_include_tag(*specs)
      assets = specs.map do |spec|
        asset_paths.asset_for(spec.asset_name, "js").to_a
      end.flatten.uniq.map(&:logical_path)

      javascript_include_tag *assets, :body => true, :debug => false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
konacha-1.1.0 app/helpers/konacha/specs_helper.rb
konacha-1.0.0 app/helpers/konacha/specs_helper.rb
konacha-1.0.0.rc1 app/helpers/konacha/specs_helper.rb
konacha-0.10.0 app/helpers/konacha/specs_helper.rb