Fix broke test. Next: Manual QA against FBJS resource adapter

pull/927/head
Rick Carlino 2018-07-23 08:57:39 -05:00
parent beafb7738c
commit ff6bf2be72
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ describe Resources::PreProcessor do
it "handles failure" do
body = "[]"
chan = CHANNEL_TPL % props
result = Resources::Service.process(DeliveryInfoShim.new(chan), body)
shim = DeliveryInfoShim.new(chan)
Resources::Service.process(shim, body)
result = Transport.current.connection
err = result.calls[:publish].last
expect(err).to be_kind_of(Array)
expect(err.last).to be_kind_of(Hash)