Sha256: 83551cbc7ae926dee80511828e0b48125a76422961b66f758c9b8b1ade826da0

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 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.6 spec/lib/reveal-ck/presentation_builder_spec.rb