Sha256: 6919e727fe2ddcad1fa6e353abdadf3a046d76c21a9adf659ad63aaedeb79319
Contents?: true
Size: 1.4 KB
Versions: 7
Compression:
Stored size: 1.4 KB
Contents
# encoding: utf-8 require 'spec_helper' require 'classy_assets' describe ClassyAssets::Configuration do before do @root_path = File.expand_path('../support', __FILE__) ClassyAssets::Configuration.configure do |config| config.root_path = @root_path end @configuration = ClassyAssets::Configuration @public_path = File.expand_path('../support/public', __FILE__) @asset_paths = Dir.glob(File.join(@configuration.root_path, @configuration.asset_prefix, '*')) end it "returns the configured root_path" do @configuration.root_path.must_equal @root_path end it "returns the computed public_path" do @configuration.public_path.must_equal @public_path end it "returns an array of asset paths" do @configuration.asset_paths.must_equal @asset_paths end it "returns the asset digest setting" do @configuration.asset_digest.must_equal false end it "returns the asset host" do @configuration.asset_host.must_equal nil end it "returns the asset prefix" do @configuration.asset_prefix.must_equal 'assets' end it "returns the debug mode setting" do @configuration.debug_mode.must_equal false end it "returns the sprockets environment" do @configuration.sprockets.must_be_kind_of Sprockets::Environment end it "returns the correct paths" do @configuration.sprockets.paths.must_equal @configuration.asset_paths end end
Version data entries
7 entries across 7 versions & 1 rubygems