Sha256: 9f5cc4ae3dcc8e59567a74690665c3a18f57acac3d26195db520caff3d351ad6
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 KB
Contents
describe Describer do let(:udid) { `xcrun simctl list | grep " iPhone 14 Pro Max"`.split("\n")[0].split('(')[1].split(')')[0] } let(:driver) { Driver.new(udid: udid) } before do allow(Logger).to receive(:info) end it 'verifies that point can be described (integer)' do driver.boot_simulator point_info = described_class.new(udid: udid, x: 10, y: 10).run expect(point_info).not_to be_empty end it 'verifies that point can be described (string)' do driver.boot_simulator point_info = described_class.new(udid: udid, x: '10', y: '10').run expect(point_info).not_to be_empty end it 'verifies `udid` param is required' do expect(Logger).to receive(:error).with('UDID should be provided') described_class.new(x: 10, y: 10) end it 'verifies `x` param is required' do expect(Logger).to receive(:error).with('`x` point coordinate should be provided') described_class.new(udid: udid, y: '10') end it 'verifies `y` param is required' do expect(Logger).to receive(:error).with('`y` point coordinate should be provided') described_class.new(udid: udid, x: '10') end it 'verifies `x` param is integer' do expect(Logger).to receive(:error).with('`x` point coordinate should be provided') described_class.new(udid: udid, x: 'test', y: '10') end it 'verifies `y` param is integer' do expect(Logger).to receive(:error).with('`y` point coordinate should be provided') described_class.new(udid: udid, x: '10', y: 'test') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xcmonkey-1.3.1 | spec/describer_spec.rb |
xcmonkey-1.3.0 | spec/describer_spec.rb |
xcmonkey-1.2.0 | spec/describer_spec.rb |