mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
15 lines
335 B
Ruby
15 lines
335 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe DevicesController, type: :controller do
|
|
|
|
describe "POST #create" do
|
|
it "creates a device" do
|
|
expect {
|
|
post :create, device: attributes_for(:device), format: :json
|
|
}.to change{ Device.count }.by(1)
|
|
#expect(response).to have_http_status(:success)
|
|
end
|
|
end
|
|
|
|
end
|