Sha256: 8051b2a8288396edbe418734489dbbad295a74b1842e15d3de5bd6257ec9013f

Contents?: true

Size: 731 Bytes

Versions: 38

Compression:

Stored size: 731 Bytes

Contents

require 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

38 entries across 38 versions & 1 rubygems

Version Path
tracksperanto-1.7.0 test/test_simple_export.rb
tracksperanto-1.6.9 test/test_simple_export.rb
tracksperanto-1.6.8 test/test_simple_export.rb
tracksperanto-1.6.7 test/test_simple_export.rb
tracksperanto-1.6.6 test/test_simple_export.rb
tracksperanto-1.6.5 test/test_simple_export.rb
tracksperanto-1.6.4 test/test_simple_export.rb
tracksperanto-1.6.3 test/test_simple_export.rb
tracksperanto-1.6.2 test/test_simple_export.rb
tracksperanto-1.6.1 test/test_simple_export.rb
tracksperanto-1.6.0 test/test_simple_export.rb
tracksperanto-1.5.7 test/test_simple_export.rb
tracksperanto-1.5.6 test/test_simple_export.rb
tracksperanto-1.5.5 test/test_simple_export.rb
tracksperanto-1.5.4 test/test_simple_export.rb
tracksperanto-1.5.3 test/test_simple_export.rb
tracksperanto-1.5.2 test/test_simple_export.rb
tracksperanto-1.5.1 test/test_simple_export.rb