Sha256: ea92b41511527d6758688b78951fcc59361495decb6defe7cccb5d8b83541fa0

Contents?: true

Size: 621 Bytes

Versions: 10

Compression:

Stored size: 621 Bytes

Contents

# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__)) + '/../helper'

class FlopMiddlewareTest < Test::Unit::TestCase
  
  def test_action_description
    assert_equal "Mirror all the tracker paths vertically", Tracksperanto::Middleware::Flop.action_description
  end
  
  def test_export_flip_and_flop
    receiver = flexmock(:exporter)
    receiver.should_receive(:start_export).once.with(110, 120)
    receiver.should_receive(:export_point).once.with(1, 10, 25, 0)
    
    m = Tracksperanto::Middleware::Flop.new(receiver)
    m.start_export(110, 120)
    m.export_point(1, 10, 95, 0)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tracksperanto-2.12.0 test/middleware/test_flop_middleware.rb
tracksperanto-2.11.3 test/middleware/test_flop_middleware.rb
tracksperanto-2.11.2 test/middleware/test_flop_middleware.rb
tracksperanto-2.11.1 test/middleware/test_flop_middleware.rb
tracksperanto-2.11.0 test/middleware/test_flop_middleware.rb
tracksperanto-2.10.0 test/middleware/test_flop_middleware.rb
tracksperanto-2.9.9 test/middleware/test_flop_middleware.rb
tracksperanto-2.9.8 test/middleware/test_flop_middleware.rb
tracksperanto-2.9.7 test/middleware/test_flop_middleware.rb
tracksperanto-2.9.6 test/middleware/test_flop_middleware.rb