Sha256: 535e714d402f03e5bd621ea7c855d3c3368dd76dde6759e51458ec939a6fdeab

Contents?: true

Size: 625 Bytes

Versions: 10

Compression:

Stored size: 625 Bytes

Contents

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

class FlipMiddlewareTest < Test::Unit::TestCase
  
  def test_action_description
    assert_equal "Mirrors all the tracker paths horizontally", Tracksperanto::Middleware::Flip.action_description
  end
  
  def test_export_with_enabled_flip
    receiver = flexmock(:exporter)
    receiver.should_receive(:start_export).once.with(110, 120)
    receiver.should_receive(:export_point).once.with(1, 100, 95, 0)

    m = Tracksperanto::Middleware::Flip.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_flip_middleware.rb
tracksperanto-2.11.3 test/middleware/test_flip_middleware.rb
tracksperanto-2.11.2 test/middleware/test_flip_middleware.rb
tracksperanto-2.11.1 test/middleware/test_flip_middleware.rb
tracksperanto-2.11.0 test/middleware/test_flip_middleware.rb
tracksperanto-2.10.0 test/middleware/test_flip_middleware.rb
tracksperanto-2.9.9 test/middleware/test_flip_middleware.rb
tracksperanto-2.9.8 test/middleware/test_flip_middleware.rb
tracksperanto-2.9.7 test/middleware/test_flip_middleware.rb
tracksperanto-2.9.6 test/middleware/test_flip_middleware.rb