Sha256: 8e62ab716b1bdeb6602b6ef10fa8e093acffa03050699fbbc85ae912e0a62905
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class BuildTest < UnitTest teardown do FileUtils.rm_rf app.public end test "build" do Stylus.expects(:compile).returns("body{background:#f00;color:#00f;}") app.assets.css_compression = :simple app.assets.build! assert File.file? File.join(app.root, 'public/js/app.js') assert Dir[File.join(app.root, 'public/js/app.*.js')].first assert File.read(File.join(app.root, 'public/js/app.js')).include?('function(){alert("Hello");') assert Dir["#{app.root}/public/images/background.*.jpg"].first assert Dir["#{app.root}/public/images/email.*.png"].first end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.9 | test/build_test.rb |
sinatra-assetpack-0.0.8 | test/build_test.rb |