Sha256: e12a476794756eb96f00ffd67c9b8a6736c501bc4cc15d43e7239474f331d4d1
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
Dir.chdir File.join File.dirname(__FILE__), '../../../' require './spec/env/iface.rb' RSpec.describe "iface:driver:dispatch_spec" do include_context "iface:driver" it "Does automatically dispatch a blank array (signaling int_disptach) when a bulk queue is received prefixed with 'r' indicating incomplete-ness" do @pipe.puts ['i', [0, 0, "ping_nothing"]].to_json expect(@pipe).to readline_and_equal_json_x_within_y_seconds([], 6.seconds) end it "Does not dispatch a blank array (signaling int_disptach) when a bulk queue is received prefixed without 'r' indicating incomplete-ness" do @pipe.puts [[0, 0, "ping_nothing"]].to_json expect(@pipe).not_to readline_and_equal_json_x_within_y_seconds([], 6.seconds) end #While at first you might think we need to test that int_dispatch called intra-respond of our if_event needs to test whether or not we still send #out blank [] to int_dispatch; this is not the case. In the real world, flok is supposed to also make any necessary if_disptach calls during all #int_dispatch calls. We would always receive back if_dispatch; and thus it would follow the same rules as layed out here end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.40 | spec/iface/driver/dispatch_spec.rb |
flok-0.0.39 | spec/iface/driver/dispatch_spec.rb |