mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 18:24:58 +00:00
- Add foreignkey to device for AppUsage - Rename the route to app_usage from app_usage/create
11 lines
310 B
Ruby
11 lines
310 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe AppUsage, type: :model do
|
|
let!(:app_usage) { create(:app_usage) }
|
|
|
|
it { should validate_presence_of :package_name }
|
|
it { should validate_presence_of :usage_duration_in_seconds }
|
|
it { should validate_presence_of :used_on }
|
|
it { should belong_to :device }
|
|
end
|