Sha256: c0f48658ccb7df71563a3f5cf18601352998a1750a4cc946b5847d758bde184d
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class Sqwish < UnitTest setup do app.assets.css_compression = :sqwish app.assets.css_compression_options[: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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.5 | test/sqwish_test.rb |