test/middleware/test_shift_middleware.rb in tracksperanto-2.9.5 vs test/middleware/test_shift_middleware.rb in tracksperanto-2.9.6
- old
+ new
@@ -1,8 +1,13 @@
# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__)) + '/../helper'
class ShiftMiddlewareTest < Test::Unit::TestCase
+
+ def test_action_description
+ assert_equal "Move all the trackers by a specified number of pixels", Tracksperanto::Middleware::Shift.action_description
+ end
+
def test_shift_supports_hash_init
receiver = flexmock
m = Tracksperanto::Middleware::Shift.new(receiver, :x_shift => 1.2)
assert_equal 1.2, m.x_shift
end