test/middleware/test_reformat_middleware.rb in tracksperanto-1.5.0 vs test/middleware/test_reformat_middleware.rb in tracksperanto-1.5.1

- old
+ new

@@ -1,10 +1,10 @@ require File.dirname(__FILE__) + '/../helper' class ReformatMiddlewareTest < Test::Unit::TestCase def test_inherits_and_thus_complies - assert Tracksperanto::Middleware::Reformat.ancestors.include?(Tracksperanto::Middleware::Scaler) + assert Tracksperanto::Middleware::Reformat.ancestors.include?(Tracksperanto::Middleware::Base) end def test_default_params_zeroed receiver = flexmock m = Tracksperanto::Middleware::Reformat.new(receiver) @@ -27,9 +27,7 @@ receiver.should_receive(:start_export).once.with(1920,1080) m = Tracksperanto::Middleware::Reformat.new(receiver, :width => 1920, :height => 1080) m.start_export(720, 576) - assert_in_delta upscale_h, m.send(:x_factor), 0.00001, "The middleware should have configured the x factor on export start" - assert_in_delta upscale_v, m.send(:y_factor), 0.00001, "The middleware should have configured the y factor on export start" end end \ No newline at end of file