Sha256: 1f778b51417bb899293ba93bdd68a7d08eff427dfae9195946a7f8336261e6e7

Contents?: true

Size: 423 Bytes

Versions: 11

Compression:

Stored size: 423 Bytes

Contents

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

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

11 entries across 11 versions & 1 rubygems

Version Path
sinatra-assetpack-0.3.5 test/order_test.rb
sinatra-assetpack-0.3.3 test/order_test.rb
sinatra-assetpack-0.3.2 test/order_test.rb
sinatra-assetpack-0.3.1 test/order_test.rb
sinatra-assetpack-0.3.0 test/order_test.rb
sinatra-assetpack-0.2.8 test/order_test.rb
sinatra-assetpack-0.2.7 test/order_test.rb
sinatra-assetpack-0.2.6 test/order_test.rb
sinatra-assetpack-0.2.5 test/order_test.rb
sinatra-assetpack-0.2.4 test/order_test.rb
sinatra-assetpack-0.2.3 test/order_test.rb