Sha256: 0b9c602be1993ee8e81ccd9b9d9bc68f7125fab066ee55a13c8d0fa30e00f7d5
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
require File.dirname(__FILE__) + '/../helper' class ShiftMiddlewareTest < Test::Unit::TestCase def test_shift_supports_hash_init receiver = flexmock m = Tracksperanto::Middleware::Flip.new(receiver) assert !m.flip assert !m.flop m = Tracksperanto::Middleware::Flip.new(receiver, :flip => true) assert m.flip m = Tracksperanto::Middleware::Flip.new(receiver, :flop => true) assert m.flop 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, 100, 95, 0) receiver.should_receive(:export_point).once.with(1, 10, 95, 0) m = Tracksperanto::Middleware::Flip.new(receiver, :flip => true) m.start_export(110, 120) m.export_point(1, 10, 95, 0) m.flip = false m.export_point(1, 10, 95, 0) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tracksperanto-1.9.9 | test/middleware/test_flip_middleware.rb |
tracksperanto-1.9.8 | test/middleware/test_flip_middleware.rb |