Sha256: 82c1c81950d9e7f49f7ad3785a691ec462f5edf2fd340811b7f8421535a9a997

Contents?: true

Size: 429 Bytes

Versions: 18

Compression:

Stored size: 429 Bytes

Contents

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

class OptionsTest < UnitTest
  class App < UnitTest::App
    register Sinatra::AssetPack

    assets {
      css :application, [ '/css/*.css' ]
      js_compression :closure
    }
  end

  def app
    App
  end

  test "options" do
    assert App.assets.js_compression == :closure
    assert App.assets.packages['application.css'].path == "/assets/application.css"
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

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