test/middleware/test_pad_middleware.rb in tracksperanto-2.9.5 vs test/middleware/test_pad_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 PadMiddlewareTest < Test::Unit::TestCase + + def test_action_description + assert_equal "Pad or crop the image by a fraction of it's original size", Tracksperanto::Middleware::Pad.action_description + end + def test_shift_supports_hash_init receiver = flexmock m = Tracksperanto::Middleware::Pad.new(receiver, :left_pad => 0.5, :right_pad => 0, :top_pad => -0.2) assert_in_delta 0.5, m.left_pad, 0.001