Sha256: 1f720fe805e4c68047f64f73ff8539631f206776a70fbe2971136857b085a7da
Contents?: true
Size: 651 Bytes
Versions: 3
Compression:
Stored size: 651 Bytes
Contents
require "spec_helper" describe IOSConfigProfile::EnrollmentPayload do subject { IOSConfigProfile::EnrollmentPayload.new "https://example.com", "topic", "identity", "password" } let(:mdm_payload) { double IOSConfigProfile::MDMPayload } let(:security_payload) { double IOSConfigProfile::SecurityPayload } before do allow(IOSConfigProfile::MDMPayload).to receive(:new).and_return mdm_payload allow(IOSConfigProfile::SecurityPayload).to receive(:new).and_return security_payload end it { is_expected.to eq([security_payload, mdm_payload]) } it "can be turned into encrypted payload" do subject.to_encrypted_payload end end
Version data entries
3 entries across 3 versions & 1 rubygems