Sha256: c19979aecab1a1c3cb702f4638ed244206f3a474585a8e233fc7874b688ff64a
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 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_equal paths.sort, [ "/css/screen.css", "/css/sqwishable.css", "/css/style.css", "/css/stylus.css", "/css/js2c.css" ].sort end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.8 | test/order_test.rb |