test/test_tracker.rb in tracksperanto-1.5.7 vs test/test_tracker.rb in tracksperanto-1.6.0

- old
+ new

@@ -14,9 +14,23 @@ assert_respond_to t, :name assert_respond_to t, :each assert_respond_to t, :keyframes end + def test_properly_ignores_flattening + t = [] + t << Tracksperanto::Tracker.new(:name => "Abc") + t[-1].keyframe! :abs_x => 12, :abs_y => 23, :frame => 1 + t[-1].keyframe! :abs_x => 13, :abs_y => 24, :frame => 2 + + t << Tracksperanto::Tracker.new(:name => "Cde") + t[-1].keyframe! :abs_x => 12, :abs_y => 23, :frame => 1 + t[-1].keyframe! :abs_x => 13, :abs_y => 24, :frame => 2 + + assert_kind_of Tracksperanto::Tracker, t.flatten[0] + assert_equal 2, t.flatten.length + end + def test_supports_hash_init assert_equal "Foo", Tracksperanto::Tracker.new(:name => "Foo").name end def test_supports_hash_init_with_keyframes \ No newline at end of file