test/models/extface/driver/datecs/fp550_test.rb in extface-0.4.3g vs test/models/extface/driver/datecs/fp550_test.rb in extface-0.4.4a

- old
+ new

@@ -43,7 +43,16 @@ #bad length frame = frame_class.new("\x01\x2b\x2F\x2D\x50\x04\x88\x80\xC0\x80\x80\xB0\x05\x30\x34\x35\x38\x03".b) assert_equal false, frame.valid? assert frame.errors.messages[:len] end + + test "fsend" do + job_thread = Thread.new do + @driver.set_job(extface_jobs(:one)) + result = @driver.fsend(0x2C) # paper move command + end + @driver.handle("\x01\x2C\x2F\x2D\x50\x04\x88\x80\xC0\x80\x80\xB0\x05\x30\x34\x35\x39\x03".b) + job_thread.join + end end end