Sha256: 2b479a96c2a37c7c89c20816eb7606cebb8f28b2715af43dc45c8b6d472d8ce6

Contents?: true

Size: 655 Bytes

Versions: 5

Compression:

Stored size: 655 Bytes

Contents

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

Encoding.default_external = 'utf-8'

class CompassAppTest < Test::Unit::TestCase
  include Rack::Test::Methods

  class App < Sinatra::Base
    set :scss, { :style => :compressed }
    register Sinatra::CompassSupport
    get('/style.css') { scss "@import 'compass/css3'; body { @include opacity(0.5); }" }
  end

  def app
    App.new
  end

  test "boogie" do
    get '/style.css'

    control = "body{-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50);opacity:0.5}\n"
    
    assert_equal control, last_response.body
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sinatra-support-1.2.0 test/test_compass_app.rb
sinatra-support-1.1.3 test/test_compass_app.rb
sinatra-support-1.1.2 test/test_compass_app.rb
sinatra-support-1.1.1 test/test_compass_app.rb
sinatra-support-1.1.0 test/test_compass_app.rb