Sha256: a8d0aa28a24c5fb77a50bd49a608cb0a6ace1511c9092db1423f88381587f353

Contents?: true

Size: 724 Bytes

Versions: 82

Compression:

Stored size: 724 Bytes

Contents

require_relative 'spec_helper'

COMPASS_DIR     = Pathname(__FILE__).dirname.join('compass')
STYLESHEETS_DIR = COMPASS_DIR.join('stylesheets')

describe 'Compass integration' do
  after do
    STYLESHEETS_DIR.rmtree if STYLESHEETS_DIR.exist?
  end

  it 'works from config.rb' do
    `cd #{ COMPASS_DIR }; bundle exec compass compile`
    expect(STYLESHEETS_DIR.join('screen.css').read)
      .to eq("a{display:-webkit-flex;display:flex}\n\n" +
             "/*# sourceMappingURL=screen.css.map */")
    expect(STYLESHEETS_DIR.join('screen.css.map').read)
      .to eq('{"version":3,"sources":["../sass/screen.scss"],"names":[],' +
             '"mappings":"AAAA,EACI,qBAAa,AAAb,YAAa,CAAA","file":"screen.css"}')
  end

end

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
autoprefixer-rails-6.7.7.1 spec/compass_spec.rb
autoprefixer-rails-6.7.7 spec/compass_spec.rb
autoprefixer-rails-6.7.6 spec/compass_spec.rb
autoprefixer-rails-6.7.5 spec/compass_spec.rb
autoprefixer-rails-6.7.4 spec/compass_spec.rb
autoprefixer-rails-6.7.3 spec/compass_spec.rb
autoprefixer-rails-6.7.2 spec/compass_spec.rb
autoprefixer-rails-6.7.1 spec/compass_spec.rb
autoprefixer-rails-6.7.0.1 spec/compass_spec.rb
autoprefixer-rails-6.7.0 spec/compass_spec.rb
autoprefixer-rails-6.6.1 spec/compass_spec.rb
autoprefixer-rails-6.6.0 spec/compass_spec.rb
autoprefixer-rails-6.5.4 spec/compass_spec.rb
autoprefixer-rails-6.5.3.1 spec/compass_spec.rb
autoprefixer-rails-6.5.3 spec/compass_spec.rb
autoprefixer-rails-6.5.2 spec/compass_spec.rb
autoprefixer-rails-6.5.1.1 spec/compass_spec.rb
autoprefixer-rails-6.5.1 spec/compass_spec.rb
autoprefixer-rails-6.5.0.2 spec/compass_spec.rb
autoprefixer-rails-6.5.0.1 spec/compass_spec.rb