Sha256: 078ae82b7ec76e97386eb5b0bc0d0388a45038262f4e1fc248e62fb7d0313ea0
Contents?: true
Size: 815 Bytes
Versions: 27
Compression:
Stored size: 815 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe ClassyAssets::Sprockets do before do ClassyAssets.config do |config| config.asset_root = File.expand_path('../support', __FILE__) config.asset_debug = false config.asset_digest = false config.asset_host = nil config.asset_paths = Dir.glob(File.join(config.asset_root, config.asset_prefix, '*')) end asset_root = ClassyAssets.config.asset_root asset_prefix = ClassyAssets.config.asset_prefix @asset_paths = Dir.glob(File.join(asset_root, asset_prefix, '*')) @sprockets = ClassyAssets.sprockets end it "returns the sprockets environment" do @sprockets.must_be_kind_of Sprockets::Environment end it "returns the correct asset paths" do @sprockets.paths.must_equal @asset_paths end end
Version data entries
27 entries across 27 versions & 1 rubygems