Sha256: 61b93cf4a95e2e98b5d21d4fbb39af201fce42baf7414b500f1ba590392c527a

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

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

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

4 entries across 4 versions & 1 rubygems

Version Path
sinatra-assetpack-0.2.6 test/stylus_test.rb
sinatra-assetpack-0.2.5 test/stylus_test.rb
sinatra-assetpack-0.2.4 test/stylus_test.rb
sinatra-assetpack-0.2.3 test/stylus_test.rb