require 'spec_helper' require 'fixtures/project/controller' RSpec.describe Rail::Application do it 'handles uncompressed Haml assets' do controller = Controller.new do config.compress = false end body = controller.process('/') expect(body.strip).to eq <<-BODY.strip Hello

Hello

BODY end it 'handles compressed Haml assets' do controller = Controller.new do config.compress = true end body = controller.process('/') expect(body.strip).to eq <<-BODY.strip Hello

Hello

BODY end it 'handles layouts' do controller = Controller.new do config.compress = false end body = controller.process('/articles/about') expect(body.strip).to eq <<-BODY.strip Hello

About

BODY end end