Sha256: 7e08f7af97abbbbdc832416b82343a36635f45e1d1538683e764926c090ce33f

Contents?: true

Size: 472 Bytes

Versions: 18

Compression:

Stored size: 472 Bytes

Contents

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

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

    assets do |a|
      a.css :a, '/css/a.css', [
        '/css/stylus.css'
      ]
    end
  end

  def app
    App
  end

  test "build" do
    Stylus.expects(:compile).returns("body{background:#f00;color:#00f;}")
    get '/css/stylus.css'
    assert body.gsub(/[ \t\r\n]/, '') == "body{background:#f00;color:#00f;}"
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

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