Sha256: 7cceb5619496b1ede9c1c27ed9e2c1657db36981db8e6bc4c1f4a4e756419b3e

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

# encoding: utf-8

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


require 'helper'


class TestBuild < MiniTest::Test

def test_build_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::Build.new( config )
   g.create_slideshow( "#{Slideshow.root}/test/samples/test.md" )
  
  assert true
end  # method test_build


def test_build_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::Build.new( config )
   g.create_slideshow( "#{Slideshow.root}/test/samples/test_content_for.md" )
  
  assert true
end  # method test_build


end # class TestBuild

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slideshow-models-4.1.0 test/test_build.rb
slideshow-models-4.0.1 test/test_build.rb
slideshow-models-4.0.0 test/test_build.rb
slideshow-models-3.3.1 test/test_build.rb
slideshow-models-3.3.0 test/test_build.rb
slideshow-models-3.2.0 test/test_build.rb
slideshow-models-3.1.1 test/test_build.rb
slideshow-models-3.1.0 test/test_build.rb
slideshow-models-3.0.2 test/test_build.rb