Sha256: 80ddfb901ead18068ad6e9663973e4f496f6687a8866a9053b53764c2e909773

Contents?: true

Size: 333 Bytes

Versions: 14

Compression:

Stored size: 333 Bytes

Contents

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

class SimplejsTest < UnitTest
  setup do
    app.set :reload_templates, true
    app.assets.js_compression = :simple
  end

  teardown do
    app.assets.js_compression  = :jsmin
  end

  test "build" do
    get '/js/app.js'
    assert body.include? ");\n\n$(function("
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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