class Jasmine::AssetExpander

Constants

UnsupportedRailsVersion

Public Instance Methods

expand(src_dir, src_path) click to toggle source
# File lib/jasmine/asset_expander.rb, line 3
def expand(src_dir, src_path)
  pathname = src_path.gsub(/^\/?assets\//, '').gsub(/\.js$/, '')

  asset_bundle.assets(pathname).flat_map { |asset|
    "/#{asset.gsub(/^\//, '')}?body=true"
  }
end