# 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