Sha256: 6f130974f931061677a4193112f166cda750de057dbb57a8bb4d5fb8c8b7184a
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class SqwishTest < UnitTest setup do app.assets.css_compression :sqwish, :strict => true end teardown do app.assets.css_compression :simple app.assets.css_compression_options.delete :strict end def self.sqwish? `which sqwish` && true rescue false end test "css compression options" do assert app.assets.css_compression_options[:strict] == true end if sqwish? test "build" do Sinatra::AssetPack::Compressor.expects(:`).with() { |cmd| cmd.match /^sqwish .*? --strict$/ } get '/css/sq.css' end else puts "(No Sqwish found; skipping sqwish tests)" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.9 | test/sqwish_test.rb |
sinatra-assetpack-0.0.8 | test/sqwish_test.rb |
sinatra-assetpack-0.0.6 | test/sqwish_test.rb |