Removed `now` from sync object, forgot to update specs. Opps

pull/1027/head
Rick Carlino 2018-11-01 08:08:49 -05:00
parent 545e23cffc
commit 674c836d8a
2 changed files with 2 additions and 3 deletions

View File

@ -31,13 +31,13 @@ describe Api::DevicesController do
get :sync, params: {}, session: { format: :json }
expect(response.status).to eq(200)
expect(Time.now - Time.parse(json[:now])).to be < 150
pair = json[:devices].first
expect(pair.first).to eq(device.id)
# TODO: FIXME: Non-deterministic test
real_time = device.updated_at.strftime(FORMAT)
expect(pair.last).to include(real_time)
expect(pair.last.first(8)).to eq(device.updated_at.as_json.first(8))
json.keys.without(:now).without(*EDGE_CASES).map do |key|
json.keys.without(*EDGE_CASES).map do |key|
array = json[key]
expect(array).to be_kind_of(Array)
sample = array.sample

View File

@ -10,7 +10,6 @@ describe Devices::Sync do
:farmware_installations,
:fbos_configs,
:firmware_configs,
:now,
:peripherals,
:pin_bindings,
:points,