Sha256: bb90a318ebdcf5f51b18115f16e43b00e4642d7deaba42819746374a97295216

Contents?: true

Size: 465 Bytes

Versions: 18

Compression:

Stored size: 465 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)

class OrderTest < UnitTest
  class App < UnitTest::App
    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

18 entries across 18 versions & 3 rubygems

Version Path
sinatra-assetpack-0.2.2 test/order_test.rb
sinatra-assetpack-0.2.1 test/order_test.rb
sinatra-assetpack-0.2.0 test/order_test.rb
sinatra-assetpack-0.1.7 test/order_test.rb
sundawg-sinatra-assetpack-fork-0.1.6 test/order_test.rb
sinatra-assetpack-0.1.6 test/order_test.rb
sinatra-assetpack-0.1.5 test/order_test.rb
sinatra-assetpack-0.1.4 test/order_test.rb
sinatra-assetpack-0.1.3 test/order_test.rb
sinatra-assetpack-0.1.2 test/order_test.rb
sinatra-assetpack-0.1.1 test/order_test.rb
sinatra-assetpack-0.1.0 test/order_test.rb
sinatra-assetpack-flexible-compression-0.0.1 test/order_test.rb
sundawg-sinatra-assetpack-fork-0.0.12.pre1 test/order_test.rb
sinatra-assetpack-0.0.12.pre1 test/order_test.rb
sinatra-assetpack-0.0.11 test/order_test.rb
sinatra-assetpack-0.0.10 test/order_test.rb
sinatra-assetpack-0.0.9 test/order_test.rb