Sha256: 7d2504fe89596bbc1591b9c5f98185fd83afaac0fa74859ab1e21cbc266ac49e

Contents?: true

Size: 299 Bytes

Versions: 18

Compression:

Stored size: 299 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.map(&:logical_path).uniq

      javascript_include_tag *(assets << {:body => true, :debug => false})
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
konacha-2.0.0 app/helpers/konacha/specs_helper.rb
konacha-2.0.0.beta3 app/helpers/konacha/specs_helper.rb
konacha-2.0.0.beta2 app/helpers/konacha/specs_helper.rb
konacha-2.0.0.beta1 app/helpers/konacha/specs_helper.rb
konacha-1.5.1 app/helpers/konacha/specs_helper.rb
konacha-1.5.0 app/helpers/konacha/specs_helper.rb
konacha-1.4.2 app/helpers/konacha/specs_helper.rb
konacha-1.4.1 app/helpers/konacha/specs_helper.rb
konacha-1.4.0 app/helpers/konacha/specs_helper.rb
konacha-1.3.1 app/helpers/konacha/specs_helper.rb
konacha-1.3.0 app/helpers/konacha/specs_helper.rb
konacha-1.2.4 app/helpers/konacha/specs_helper.rb
konacha-1.2.3 app/helpers/konacha/specs_helper.rb
konacha-1.2.2 app/helpers/konacha/specs_helper.rb
konacha-1.2.1 app/helpers/konacha/specs_helper.rb
konacha-1.2.0 app/helpers/konacha/specs_helper.rb
konacha-1.1.3 app/helpers/konacha/specs_helper.rb
konacha-1.1.2 app/helpers/konacha/specs_helper.rb