Sha256: b69f9bc116495bf101ecafafe02ffb9ddba0d395fe97ab796ffa6780c6cb039b

Contents?: true

Size: 518 Bytes

Versions: 48

Compression:

Stored size: 518 Bytes

Contents

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

Encoding.default_external = 'utf-8'  if defined?(::Encoding)

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'

    assert_includes last_response.body, 'filter:'
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.7.4 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.7.3 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.7.2 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.7.1 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.7.0 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.9 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.8 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.7 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.6 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.5 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.4 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.3 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.2 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.1 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.6.0 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.5.17 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.5.16 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.5.15 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb
classiccms-0.5.14 vendor/bundle/gems/sinatra-support-1.2.2/test/test_compass_app.rb