Sha256: b06e5ec8466f24c009aebb98f37a5f69c72682697531ec8ebd7b44382f68bb11

Contents?: true

Size: 580 Bytes

Versions: 3

Compression:

Stored size: 580 Bytes

Contents

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

class FlipToolTest < Test::Unit::TestCase
  
  def test_action_description
    assert_equal "Mirrors all the tracker paths horizontally", Tracksperanto::Tool::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::Tool::Flip.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_flip_middleware.rb
tracksperanto-4.1.0 test/tools/test_flip_middleware.rb
tracksperanto-4.0.0 test/tools/test_flip_middleware.rb