Sha256: 7b868e55b182e84b808f5bf2bdaf4d54118ee74688f18f7f1f191b4455008a3d
Contents?: true
Size: 836 Bytes
Versions: 2
Compression:
Stored size: 836 Bytes
Contents
require "spec_helper" describe IOSConfigProfile::AppLockPayload do subject { IOSConfigProfile::AppLockPayload } describe "#initialize" do it "must be initialized with an app's bundle id" do payload = subject.new "1234" expect(payload["PayloadContent"][0]["App"]["Identifier"]).to eq "1234" expect { subject.new nil }.to raise_error RuntimeError end it "has required payload values" do payload = subject.new "1234" expect(payload["PayloadIdentifier"]).to eq "#{IOSConfigProfile.root_domain}applock.profile.mdm" expect(payload["PayloadContent"][0]["PayloadType"]).to eq "com.apple.app.lock" end it "has a uuid" do payload1 = subject.new "1234" payload2 = subject.new "1234" expect(payload1["PayloadUUID"]).to_not eq payload2["PayloadUUID"] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ios_config_profile-1.4.1 | spec/device/app_lock_payload_spec.rb |
ios_config_profile-1.4.0 | spec/device/app_lock_payload_spec.rb |