Sha256: f10b0df0f025683e1e54b5574805805d552f0ae19d1baa10ecdcd437dc74dd44

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

require File.dirname(__FILE__) + '/helper'
require 'rdvd-slideshow/slideshow_task'

class TestSlideshowTask < Test::Unit::TestCase

  def test_slideshow_task
    task = RDvdSlideshow::SlideshowTask.new(:output_dir => output_dir)
    task.write_input do |input|
      input.image default_image, 0.5
    end
    
    input_file = task.input_file
    assert !input_file.nil?
    
    lines = File.readlines(input_file)
    assert 1, lines.length
    assert_equal "#{default_image}:0.500\n",lines[0]
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rdvd-slideshow-0.0.1 test/test_slideshow_task.rb
rdvd-slideshow-0.0.2 test/test_slideshow_task.rb
rdvd-slideshow-0.0.3 test/test_slideshow_task.rb