Sha256: a37fd2aabfeb9ed9f603a190123f590d599983cd9038682cbcbd51a8af4a1f4d

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

# encoding: utf-8

###
#  to run use
#     ruby -I ./lib -I ./test test/test_gen.rb


require 'helper'


class TestGen < MiniTest::Test

def test_gen_test

   opts    = Slideshow::Opts.new
   
   opts.test         = true     # (auto-)includes templates from /test/templates
   opts.verbose      = true     # turn on (verbose) debug output
   opts.manifest     = 'test'
   opts.output_path  = "#{Slideshow.root}/tmp/#{Time.now.to_i}"

   config  = Slideshow::Config.new( opts )
   config.load
   config.dump
  
   g = Slideshow::Gen.new( config )
   g.create_slideshow( "#{Slideshow.root}/test/samples/test.md" )
  
  assert true
end  # method test_gen


def test_gen_test_content_for

   opts    = Slideshow::Opts.new
   
   opts.test         = true     # (auto-)includes templates from /test/templates
   opts.verbose      = true     # turn on (verbose) debug output
   opts.manifest     = 'test'
   opts.output_path  = "#{Slideshow.root}/tmp/#{Time.now.to_i}"

   config  = Slideshow::Config.new( opts )
   config.load
   config.dump
  
   g = Slideshow::Gen.new( config )
   g.create_slideshow( "#{Slideshow.root}/test/samples/test_content_for.md" )
  
  assert true
end  # method test_gen


end # class TestGen

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slideshow-models-3.0.1 test/test_gen.rb
slideshow-models-3.0.0 test/test_gen.rb