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