mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
Change the registration API to return next heartbeat time
This commit is contained in:
@@ -6,6 +6,8 @@ RSpec.describe DevicesController, type: :controller do
|
||||
it "creates a device" do
|
||||
expect do
|
||||
post :create, device: attributes_for(:device), format: :json
|
||||
expect(JSON.parse(response.body)["access_token"]).not_to be_nil
|
||||
expect(JSON.parse(response.body)["next_heartbeat_time"]).not_to be_nil
|
||||
end.to change{ Device.count }.by(1)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user