Sha256: 1ccc47956c180e8929c4253209e2a867e12c49048933df29cb00df3e81d39b63
Contents?: true
Size: 751 Bytes
Versions: 4
Compression:
Stored size: 751 Bytes
Contents
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 <!DOCTYPE html> <html> <head> <title>Hello</title> </head> <body> <h1>Hello</h1> </body> </html> 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 <!DOCTYPE html> <html> <head> <title>Hello</title> </head> <body> <h1>Hello</h1> </body> </html> BODY end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rail-0.0.5 | spec/haml_spec.rb |
rail-0.0.4 | spec/haml_spec.rb |
rail-0.0.3 | spec/haml_spec.rb |
rail-0.0.2 | spec/haml_spec.rb |