require File.expand_path(File.dirname(__FILE__)) + '/../helper' class DistortMiddlewareTest < Test::Unit::TestCase include ParabolicTracks def test_truth File.open("/tmp/dist.nk", "w") do |f | nx = Tracksperanto::Export::NukeScript.new(f) dist = Tracksperanto::Middleware::LensDistort.new(nx, :k => 0.03, :kcube => 0.02, :extend_image => true) export_parabolics_with(dist) end end end