Sha256: e75fa748d5d16772b9a1a75f93089932d7196009e059e1ddca08476d51627f0c
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class OrderTest < UnitTest class App < Sinatra::Base set :root, File.expand_path('../app', __FILE__) register Sinatra::AssetPack assets { css :a, '/css/a.css', [ '/css/s*.css', '/css/j*.css' ] } end test "order" do paths = App.assets.packages['a.css'].paths assert paths == ["/css/screen.css", "/css/sqwishable.css", "/css/style.css", "/css/js2c.css"] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.6 | test/order_test.rb |
sinatra-assetpack-0.0.5 | test/order_test.rb |