Sha256: 9f3a567c8be4def8f32fe9ece4b18648cf2fbb7fd6a5baaf3ce5a0e0d3617869

Contents?: true

Size: 750 Bytes

Versions: 3

Compression:

Stored size: 750 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
tracksperanto-4.1.2 test/test_simple_export.rb
tracksperanto-4.1.0 test/test_simple_export.rb
tracksperanto-4.0.0 test/test_simple_export.rb