Sha256: 109054d11bf49a54310b2d9253e56cc13fc41ca36d56d963381256254406f420

Contents?: true

Size: 387 Bytes

Versions: 6

Compression:

Stored size: 387 Bytes

Contents

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

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

6 entries across 6 versions & 1 rubygems

Version Path
sinatra-assetpack-0.2.8 test/options_test.rb
sinatra-assetpack-0.2.7 test/options_test.rb
sinatra-assetpack-0.2.6 test/options_test.rb
sinatra-assetpack-0.2.5 test/options_test.rb
sinatra-assetpack-0.2.4 test/options_test.rb
sinatra-assetpack-0.2.3 test/options_test.rb