test/test_tracker.rb in tracksperanto-1.2.6 vs test/test_tracker.rb in tracksperanto-1.3.0
- old
+ new
@@ -36,9 +36,14 @@
def test_inspect
t = Tracksperanto::Tracker.new(:name => "FooTracker")
assert_equal '<T "FooTracker" with 0 keyframes>', t.inspect
end
+ def test_ensure_tracker_forbids_spaces_in_names
+ t = Tracksperanto::Tracker.new(:name => "Mary had a \n \t little lamb")
+ assert_equal "Mary_had_a_little_lamb", t.name
+ end
+
def test_enumerates_keyframe_values_and_returns_length
t = Tracksperanto::Tracker.new(:keyframes => [:a, :b])
assert_equal [:a, :b], t.map{|e| e}
assert_equal 2, t.length
assert_equal :a, t[0]
\ No newline at end of file