Sha256: 911237c828b793cb3d7b6ddc10b62c325bd03965577a09f314488ebfae50c05f

Contents?: true

Size: 666 Bytes

Versions: 16

Compression:

Stored size: 666 Bytes

Contents

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

class PreprocTest < UnitTest
  test "preproc" do
    get '/css/screen.css'
    assert body =~ %r{email.[0-9]+.png}
  end

  test "preproc static files" do
    get '/css/style.css'
    assert body =~ %r{background.[0-9]+.jpg}
  end

  test "no cache-busting number for non-existent images" do
    get '/css/style.css'
    assert body.include?('background: url(/images/404.png)')
  end

  test "preproc on minify" do
    get '/css/application.css'
    assert body =~ %r{email.[0-9]+.png}
  end

  test "embed" do
    get '/css/screen.css'
    assert body =~ %r{data:image/png;base64,[A-Za-z0-9=/]{100,}}
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

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