Sha256: 3a3dfd2e75282303e83b8cac1f2bed89c7e5fa1d37124a338100af736d9676b2

Contents?: true

Size: 576 Bytes

Versions: 3

Compression:

Stored size: 576 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)) + '/../helper'

class FlopToolTest < Test::Unit::TestCase
  
  def test_action_description
    assert_equal "Mirror all the tracker paths vertically", Tracksperanto::Tool::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::Tool::Flop.new(receiver)
    m.start_export(110, 120)
    m.export_point(1, 10, 95, 0)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tracksperanto-4.1.2 test/tools/test_flop_middleware.rb
tracksperanto-4.1.0 test/tools/test_flop_middleware.rb
tracksperanto-4.0.0 test/tools/test_flop_middleware.rb