Sha256: 60236d309921267ed5cf50bed98d8d586c325b07837238b981dd43253dba229b

Contents?: true

Size: 694 Bytes

Versions: 3

Compression:

Stored size: 694 Bytes

Contents

require 'spec_helper'
require 'fixtures/project/controller'

RSpec.describe Rail::Application do
  it 'handles uncompressed Sass assests' do
    controller = Controller.new do
      config.compress = false
    end
    body = controller.process('/application.css')
    expect(body.strip).to eq <<-BODY.strip
* {
  margin: 0;
  padding: 0; }

body {
  font-family: 'Benton Modern Display'; }
    BODY
  end

  it 'handles compressed Sass assets' do
    controller = Controller.new do
      config.compress = true
    end
    body = controller.process('/application.css')
    expect(body.strip).to eq <<-BODY.strip
*{margin:0;padding:0}body{font-family:'Benton Modern Display'}
    BODY
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rail-0.1.1 spec/features/sass_spec.rb
rail-0.1.0 spec/features/sass_spec.rb
rail-0.0.8 spec/features/sass_spec.rb