mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
Update device create API
- Update the existing device if a device with existing unique_id is present
This commit is contained in:
@@ -7,7 +7,7 @@ RSpec.describe Device, type: :model do
|
||||
it { should validate_presence_of :model }
|
||||
it { should validate_uniqueness_of :unique_id }
|
||||
|
||||
describe "after create" do
|
||||
describe "before create" do
|
||||
it "generates an access token for the device" do
|
||||
expect(device.access_token).not_to be_nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user