Sha256: 3597869d047808b20d753d382a3b394fe8b80c7084316d2b53d478d8509fd9b9
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
require 'spec_helper' require 'tmpdir' module RevealCK describe PresentationBuilder do let :presentation do presentation = Presentation.new presentation.title = "Presentation Title" presentation.author = "Presentation Author" presentation.add_slide(Slide.new({ template: 'title', title: presentation.title, author: presentation.author, site: 'http://site.com', twitter: 'twitter' })) presentation end it 'can build reveal.js slides from a Presentation' do tmp_dir = Dir.mktmpdir presentation_builder = PresentationBuilder.new({ presentation: presentation, output_dir: tmp_dir, }) presentation_builder.build! expect(File.exists? File.join(tmp_dir, "index.html")).to be_true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reveal-ck-0.1.5 | spec/lib/reveal-ck/presentation_builder_spec.rb |