Sha256: f105a06b13f55726a170e9b1897858b5db9d321d0a973f3fa8fa052426a63da9

Contents?: true

Size: 777 Bytes

Versions: 42

Compression:

Stored size: 777 Bytes

Contents

# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__)) + '/helper'

class SimpleExportTest < Test::Unit::TestCase
  
  class Probe
    include Tracksperanto::SimpleExport
  end
  
  def test_message_sends
    probe = Probe.new
    flexmock(probe).should_receive(:start_export).with(1920, 1080).once
    flexmock(probe).should_receive(:start_tracker_segment).with("Foo").once
    flexmock(probe).should_receive(:export_point).with(2, 345.0, 678.0, 0.0).once
    flexmock(probe).should_receive(:end_tracker_segment).once
    flexmock(probe).should_receive(:end_export).once
  
    t = Tracksperanto::Tracker.new(:name => "Foo")
    t.keyframe! :frame => 2, :abs_x => 345.0, :abs_y => 678.0, :residual => 0.0
    probe.just_export([t], 1920, 1080)
  end

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
tracksperanto-3.5.9 test/test_simple_export.rb
tracksperanto-3.5.8 test/test_simple_export.rb
tracksperanto-3.5.7 test/test_simple_export.rb
tracksperanto-3.5.6 test/test_simple_export.rb
tracksperanto-3.5.5 test/test_simple_export.rb
tracksperanto-3.5.4 test/test_simple_export.rb
tracksperanto-3.5.2 test/test_simple_export.rb
tracksperanto-3.5.1 test/test_simple_export.rb
tracksperanto-3.5.0 test/test_simple_export.rb
tracksperanto-3.4.1 test/test_simple_export.rb
tracksperanto-3.4.0 test/test_simple_export.rb
tracksperanto-3.3.13 test/test_simple_export.rb
tracksperanto-3.3.12 test/test_simple_export.rb
tracksperanto-3.3.11 test/test_simple_export.rb
tracksperanto-3.3.10 test/test_simple_export.rb
tracksperanto-3.3.9 test/test_simple_export.rb
tracksperanto-3.3.8 test/test_simple_export.rb
tracksperanto-3.3.7 test/test_simple_export.rb
tracksperanto-3.3.6 test/test_simple_export.rb
tracksperanto-3.3.0.pre test/test_simple_export.rb