Sha256: 4c2763ed629a6d2dc7d95f1b4f0cc4d5ec0af2135875218102d78041884e7e6f
Contents?: true
Size: 978 Bytes
Versions: 1
Compression:
Stored size: 978 Bytes
Contents
require 'rhet-butler/html-generator' require 'rhet-butler/file-manager' require 'rhet-butler/slide' require 'rhet-butler/configuration' describe RhetButler::HTMLGenerator do let :slides do one = RhetButler::Slide.new one.content = "A test slide" [ one ] end let :files do manager = RhetButler::FileManager.new end let :template_handler do files.aspect_templates(:viewer) end let :configuration do files.aspect_config(:viewer) end let :generator do described_class.new(configuration, template_handler).tap do |gen| gen.slides = slides end end let :root_template do "presentation.html" end let :html do generator.render(root_template) end it "should produce text from slides" do html.should be_a(String) end it "should produce good HTML" do expect do Nokogiri::HTML::Document.parse(html, nil, nil, Nokogiri::XML::ParseOptions::DEFAULT_XML) end.to_not raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rhet-butler-0.5.0 | spec/html-generation.rb |