Sha256: 72593a7e97acd51ea99534375adff7b6b0a66f77de5aa9c1e220768753e7d5c0

Contents?: true

Size: 873 Bytes

Versions: 26

Compression:

Stored size: 873 Bytes

Contents

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

class GoldenToolTest < Test::Unit::TestCase
  
  def test_action_description
    assert_equal "Reset residual of all the trackers to zero", Tracksperanto::Tool::Golden.action_description
  end
  
  def test_golden_bypasses_methods
    receiver = flexmock
    
    receiver.should_receive(:start_export).once.with(120,120)
    receiver.should_receive(:start_tracker_segment).once.with("Tracker")
    receiver.should_receive(:export_point).once.with(0, 100, 100, 0.0)
    receiver.should_receive(:end_tracker_segment).once
    receiver.should_receive(:end_export).once
    
    m = Tracksperanto::Tool::Golden.new(receiver)
    m.start_export(120, 120)
    m.start_tracker_segment("Tracker")
    m.export_point(0, 100, 100, 0.56)
    m.end_tracker_segment
    m.end_export
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
tracksperanto-3.5.9 test/tools/test_golden_middleware.rb
tracksperanto-3.5.8 test/tools/test_golden_middleware.rb
tracksperanto-3.5.7 test/tools/test_golden_middleware.rb
tracksperanto-3.5.6 test/tools/test_golden_middleware.rb
tracksperanto-3.5.5 test/tools/test_golden_middleware.rb
tracksperanto-3.5.4 test/tools/test_golden_middleware.rb
tracksperanto-3.5.2 test/tools/test_golden_middleware.rb
tracksperanto-3.5.1 test/tools/test_golden_middleware.rb
tracksperanto-3.5.0 test/tools/test_golden_middleware.rb
tracksperanto-3.4.1 test/tools/test_golden_middleware.rb
tracksperanto-3.4.0 test/tools/test_golden_middleware.rb
tracksperanto-3.3.13 test/tools/test_golden_middleware.rb
tracksperanto-3.3.12 test/tools/test_golden_middleware.rb
tracksperanto-3.3.11 test/tools/test_golden_middleware.rb
tracksperanto-3.3.10 test/tools/test_golden_middleware.rb
tracksperanto-3.3.9 test/tools/test_golden_middleware.rb
tracksperanto-3.3.8 test/tools/test_golden_middleware.rb
tracksperanto-3.3.7 test/tools/test_golden_middleware.rb
tracksperanto-3.3.6 test/tools/test_golden_middleware.rb
tracksperanto-3.3.0.pre test/tools/test_golden_middleware.rb