Remove tests that treat `Transport` as a singleton

pull/814/head
Rick Carlino 2018-04-26 11:15:47 -05:00
parent 30fdf4bc63
commit 923794fcbd
2 changed files with 0 additions and 20 deletions

View File

@ -1,13 +0,0 @@
require 'spec_helper'
RSpec.describe SendFactoryResetJob, type: :job do
let(:device) { FactoryBot.create(:device) }
it 'sends a factory_reset RPC' do
dbl = double("fake transport layer")
payl = SendFactoryResetJob.rpc_payload(device)
expect(dbl)
.to receive(:amqp_send).with(payl.to_json, device.id, "from_clients")
SendFactoryResetJob.new.perform(device, dbl)
end
end

View File

@ -25,11 +25,4 @@ describe Device do
device.timezone = "America/Chicago"
expect([-5, -6, -7]).to include device.tz_offset_hrs # Remember DST!
end
it 'uses `tell` to send device messages' do
dbl = double("fake transport layer")
expect(dbl).to receive(:amqp_send)
result = device.tell("Hello!", dbl)
expect(result.message).to eq("Hello!")
end
end