require 'minitest/spec' require 'minitest/autorun' require_relative 'project/controller' describe Rail::Application do it 'handles uncompressed Haml assets' do controller = Controller.new do config.compress = false end body = controller.process('/') assert_equal body.strip, <<-BODY.strip Hello

Hello

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

Hello

BODY end end