Sha256: 9ade3aef789d15959b22823deee09801b2880bd26bcbe0ff68dea887c72368a0
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 Bytes
Contents
require 'spec/helper' require 'nagoro/pipe/tidy' describe "Nagoro::Pipe::Tidy" do def compile(obj) Nagoro::Template[Nagoro::Pipe::Tidy].compile(obj).compiled end it 'pipes the template through tidy' do compile('<html></html>').strip.should == "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <title></title> </head> <body> </body> </html>" end end
Version data entries
4 entries across 4 versions & 2 rubygems