test/sqwish_test.rb in sinatra-assetpack-0.1.2 vs test/sqwish_test.rb in sinatra-assetpack-0.1.3

- old
+ new

@@ -1,9 +1,10 @@ require File.expand_path('../test_helper', __FILE__) class SqwishTest < UnitTest setup do + app.set :reload_templates, true app.assets.css_compression :sqwish, :strict => true end teardown do app.assets.css_compression :simple @@ -18,13 +19,13 @@ assert app.assets.css_compression_options[:strict] == true end if sqwish? test "build" do - Sinatra::AssetPack::Compressor - Sinatra::AssetPack::SqwishEngine.any_instance.expects(:css) - + swqished_css = '#bg{background:green;color:red}' + Sinatra::AssetPack::SqwishEngine.any_instance.expects(:css).returns swqished_css get '/css/sq.css' + assert body == swqished_css end else puts "(No Sqwish found; skipping sqwish tests)" end end